Knowledge Base
MilesWeb / Dedicated Server FAQ

How to update yum repositories on your server ?

Approx. read time : 2 min

yum (Yellow dog Updater Modified) is a package manager for RPM’s compatible with Linux systems such as CentOS, Fedora core and latest Redhat Enterprise Linux.

There is a need to update yum on your server so that latest rpm’s can be installed released by the vendors/open source team all over the world. Let’s see how can you update yum repositories.

You need to install the fastestmirror and yum priorities to start with.

# yum install yum-fastestmirror
# yum install yum-priorities

Now, you need to import a RPM GPG key. You can download the key and import OR import it directly.

# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

OR

# cd /usr/local/src
# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm –import RPM-GPG-KEY.dag.txt

Now let’s install rpm’s release version. To do that first understand the OS architecture. You need to download the rpm according to it.

# getconf LONG_BIT

This command will give the output about the OS architecture (32 OR 64 bit).

Download the rpm rpmforge-release-0.3.6-1.el5.rf.i386.rpm OR rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm from the URL http://apt.sw.be/redhat/el5/en depending on OS architecture.

Install rpmforge with command

# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Perform a yum update.

# yum check-update

Performing a update on the rpm’s will consume time. Once it’s completed with updating the rpm, go ahead and install the rpm’s you want. This will install the latest available rpm’s available within the community.

Looking for quality best dedicated server? Look no further than MilesWeb Hosting!

Save

Need help? We’re always here for you.