Wednesday, March 27, 2013

Install Webmin Using the YUM repository.



You can follow the below instructions to install Webmin using Yum Repository.
--------------------------------------------------------------------------------------------------

 If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

You should also fetch and install my GPG key with which the packages are signed, with the commands :

wget http://www.webmin.com/jcameron-key.asc

rpm --import jcameron-key.asc

You will now be able to install with the command :

yum install webmin

All dependencies should be resolved automatically.
====================================

problem
-----------

[root@ftp ~]# rpm --import http://www.webmin.com/jcameron-key.asc

error: http://www.webmin.com/jcameron-key.asc: import read failed(0)


1. Open up http://www.webmin.com/jcameron-key.asc in your browser and copy  the output

2. Login to your server and go to a temp location for me it was /tmp

3. Create a new file (I use nano, but use whatever you normally do, pico, vi etc)

$ nano public.gpg.key

and then paste in the key you copied form the browser. Save the file and exit.

4. From the CLI then enter

$ rpm --import public.gpg.key

5. Voila GPG key installed and you can now use yum to install webmin!


Done !

No comments:

Post a Comment