Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Dedicated Server FAQ  >  How to update yum repositories on your server ?
Top Scroll

How to update yum repositories on your server ?

 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


# cd /usr/local/src
# wget
# 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 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!


For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.