Pre-Install Repos for CentOS 6.5, CentOS 6.6 and CentOS 7

zinnium

Verified User
Joined
Dec 21, 2014
Messages
23
The guide is a PRE-INSTALL Guide only for CentOS users. Its only how to install some of the extra sources so the following install go without issues:
1. Reverse-proxy NGINX + Apache
2. SpamAssassin
3. ClamAV
4. Varnish Cache
5. ConfigServer Security & Firewall ( CSF )

This is fixed all my install, setup, dependency issues and weirdness issues with trying to do various installs. I will give thanks to HowtoForge authors Falko & Till who I rip this stuff off of. Thank you guys :eek:!!!


For CentOS 6.5 and CentOS 6.6 users. You need to be in Terminal and logged in as Root.

Code:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

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

Code:
cd /tmp
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Code:
pm --import https://fedoraproject.org/static/0608B895.txt
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

We don't need priorities but it helps to keep things clean with EPEL.
Code:
yum -y install yum-priorities

Now edit the EPEL Repo file
Code:
vi /etc/yum.repos.d/epel.repo

We want to add: priority=10 into the EPEL.Repo folder. As you see in the example below.
Code:
[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
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[...]


Just do this next thing and you are done with the CentOS 6.5 and 6.6 Setup.
Code:
yum update

You done now, you shouldn't need any additional REPOS, and everything should just install perfectly.


For CentOS 7 users. You need to be in Terminal and logged in as Root.


Code:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

Code:
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm


We don't need priorities but it helps to keep things clean with EPEL.
Code:
yum -y install yum-priorities

Now edit the EPEL Repo file
Code:
vi /etc/yum.repos.d/epel.repo

We want to add: priority=10 into the EPEL.Repo folder. As you see in the example below.
Code:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[...]



Just do this next thing and you are done with the CentOS 7 Setup.
Code:
yum update

You done now, you shouldn't need any additional REPOS, and everything should just install perfectly.
 
Back
Top