Showing posts with label yum. Show all posts
Showing posts with label yum. Show all posts

Tuesday, February 19, 2008

CentOS - yum update failed - Retrieving GPG key ...

While using yum to update CentOS

Get the "Retrieving GPG key .." error, files get downloaded but fail to update

I solved the problem by get the RPM-GPG-KEY from the first CD of the installation media. In my case, it is "RPM-GPG-KEY-CentOS-5"

Need to import this key to RPM's DB, run the following command as root
rpm --import RPM-GPG-KEY-CentOS-5

Wednesday, December 5, 2007

yum through proxy

1) You can set the environment variable, http_proxy and ftp_proxy, each time before you start yum as

export http_proxy="http://ip:port"
export ftp_proxy="http://ip:port"

For corporate environment, you likely need the uesrname and password as well as:
export http_proxy="http://username:password@ip:port"
export ftp_proxy="http://username:password@ip:port"

or

2) Update the /etc/yum.conf add the following line under
proxy=http://ip:port/

Make sure you include the last slat(/)

It saves you from setting the environment variable every time, but having you plain password store in a file may not be a good idea


To get a GUI front end for yum get the yumex
>yum install yumex