UPDATING YUM REPOSITORY- CENTOS-6.4

UPDATING YUM REPOSITORY- CENTOS-6.4

Hello Everyone, In this post we will discuss how to update CENTOS-6.4 with rpm-forge,epel & remi repositories.

For Basic Installation Part you can use CENTOS-6.4 Installation Link http://how2install.in/index.php/linux-centos-distro-installation/

As we Need to install latest software later on, so we have to update yum repositories. It will help us finding latest version without having much trouble.

1. We’ll Start first with rpm-forge repository,

[root@centos ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* 
[root@centos ~]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
[root@centos ~]# cd /tmp

Now we will download  & install .rpm package of rpm-forge repository

[root@centos tmp]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 

Saving to: ârpmforge-release-0.5.3-1.el6.rf.x86_64.rpmâ

100%[======================================>] 12,640 20.4K/s in 0.6s

[root@centos tmp]# 
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 

Preparing... ########################################### [100%]

1:rpmforge-release ########################################### [100%]

2. Download & Install epel repository

[root@centos tmp]# rpm --import https://fedoraproject.org/static/0608B895.txt

[root@centos tmp]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
[root@centos tmp]# rpm -ivh epel-release-6-8.noarch.rpm

Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]

 3. Download & Install remi repository

[root@centos tmp]# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi 
[root@centos tmp]# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
[root@centos tmp]# rpm -ivh remi-release-6.rpm

Preparing... ########################################### [100%]
1:remi-release ########################################### [100%]

4. Now we’ll install yum-priorities with below command

[root@centos tmp]# yum install yum-priorities 
-------
-------

Installed:
yum-plugin-priorities.noarch 0:1.1.30-14.el6
Complete!

[root@centos tmp]#

 5. Next task is to enable these repositories &  set priorities:

  • Open below mentioned file using any of the editor & add a new line priority=10
[root@centos tmp]# vim /etc/yum.repos.d/epel.repo 
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
priority = 10
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
----------------------------------------------------
-------------------------------------------
----------------------------------
----------------------

Save & Exit this file.

  • Now repeat the same for remi, ther set enabled =1 which would be 0 by-default & also add a line priority=10

[root@centos tmp]# vim /etc/yum.repos.d/remi.repo 
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
priority=10
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
-----------------------------------------------------
------------------------------------------
----------------------------------
---------------------

Save & Exit this file.

Repositories are  installed & enabled.

You can use below commands to update the system.

[root@centos tmp]# yum update 
------------
------------
Total Download size :229 M
Is this ok : y (write y & press Enter)
------------
------------
It will take some time to update the packages.

[root@centos tmp]# yum groupinstall 'Development Tools'

Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.