※CentOS7のサポートが終わっている、2025/12/08 現在でも有効
rpmを落としてインストールしたWebminをいったんremoveして、改めてrepository経由インストールすることにより、以降は
yum管理で公式から最新版を適用できるようにする。
# yum remove webmin
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:2.610-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
webmin noarch 2.610-1 installed 93 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 93 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : webmin-2.610-1.noarch 1/1
Verifying : webmin-2.610-1.noarch 1/1
Removed:
webmin.noarch 0:2.610-1
Complete!
# curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19680 100 19680 0 0 47607 0 --:--:-- --:--:-- --:--:-- 47651
# sh webmin-setup-repo.sh
Setup Webmin release repository? (y/N) y
Downloading Webmin Developers key ..
.. done
Installing Webmin Developers key ..
.. done
Setting up Webmin release repository ..
.. done
Downloading repository metadata ..
.. done
Webmin and Usermin can be installed with:
yum install webmin usermin
# yum install webmin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: d2lzkl7pfhq30w.cloudfront.net
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:2.610-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
webmin noarch 2.610-1 webmin-stable 32 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 32 M
Installed size: 93 M
Is this ok [y/d/N]: y
Downloading packages:
webmin-2.610-1.noarch.rpm | 32 MB 00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : webmin-2.610-1.noarch 1/1
Verifying : webmin-2.610-1.noarch 1/1
Installed:
webmin.noarch 0:2.610-1
Complete!
# systemctl status webmin
● webmin.service - Webmin server daemon
Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2025-12-08 00:20:42 JST; 9s ago
Process: 26088 ExecStart=/usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf (code=exited, status=0/SUCCESS)
Main PID: 26089 (miniserv.pl)
CGroup: /system.slice/webmin.service
mq26089 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/...
Dec 08 00:20:42 i-15100000220639 systemd[1]: Starting Webmin server daemon...
Dec 08 00:20:42 i-15100000220639 systemd[1]: Started Webmin server daemon.
# systemctl enable webmin
切り替え後、設定は引き継がれている模様。
