Advertisement
tirabytes

CentOS: Extra REPO

Nov 1st, 2012
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. How to install RHEL EPEL repository on Centos 5.x or 6.x
  2. The following article will article CentOS 5.x-based or Centos 6.x-based system using Fedora Epel repos, and the third party remi package repos. These package repositories are not officially supported by CentOS, but they provide much more current versions of popular applications like PHP or MYSQL.
  3.  
  4. Install the extra repositories
  5.  
  6. The first step requires downloading some RPM files that contain the additional YUM repository definitions.
  7.  
  8. Centos 5.x
  9.  
  10. wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  11. wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
  12. sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
  13. Centos 6.x
  14.  
  15. wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
  16. wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
  17. sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
  18. Once installed you should see some additional repo definitions under the /etc/yum.repos.d directory.
  19.  
  20. $ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
  21. /etc/yum.repos.d/epel.repo
  22. /etc/yum.repos.d/epel-testing.repo
  23. /etc/yum.repos.d/remi.repo
  24. Enable the remi repository
  25.  
  26. The remi repository provides a variety of up-to-date packages that are useful or are a requirement for many popular web-based services. That means it generally is not a bad idea to enable the remi repositories by default.
  27.  
  28. First, open the /etc/yum.repos.d/remi.repo repository file using a text editor of your choice:
  29.  
  30. sudo vim /etc/yum.repos.d/remi.repo
  31. Edit the [remi] portion of the file so that the enabled option is set to 1. This will enable the remi repository.
  32.  
  33. name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
  34. #baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
  35. mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
  36. enabled=1
  37. gpgcheck=1
  38. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  39. failovermethod=priority
  40. You will now have a larger array of yum repositories to install from.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement