Create and open this new file using your text editor:
sudo vi /etc/yum.repos.d/webmin.repo
Then add these lines to the file to define the new repository:
nano /etc/yum.repos.d/webmin.repo
[Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1
Save the file and exit the editor.
Next, add the Webmin author’s PGP key so that your system will trust the new repository:
wget http://www.webmin.com/jcameron-key.asc sudo rpm --import jcameron-key.asc
Note: Before you install Webmin, make sure you have set a password for the root user by running
sudo passwd
As you will need this to log in to Webmin later.
You can now install Webmin:
sudo yum install webmin
Once the installation finishes, you will see the following message in the output:
Webmin install complete. You can now login to https://your_domain:10000/ as root with your root password.