Add Repositories for Centos 7

Add some useful external repositories to install useful softwares. [1] Install a plugin to add priorities to each installed repositories.

[root@dlp ~]# yum -y install yum-plugin-priorities

# set [priority=1] to official repository

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.repo

[2] Add EPEL Repository which is provided from Fedora project.

[root@dlp ~]# yum -y install epel-release

# set [priority=5]

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=5/g" /etc/yum.repos.d/epel.repo

# for another way, change to [enabled=0] and use it only when needed

[root@dlp ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo

# if [enabled=0], input a command to use the repository

[root@dlp ~]# yum --enablerepo=epel install [Package]

[3] Add RPMforge Repository which provides many useful packages.

[root@dlp ~]# yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

# set [priority=10]

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/rpmforge.repo

# for another way, change to [enabled=0] and use it only when needed

[root@dlp ~]# sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo

# if [enabled=0], input a command to use the repository

[root@dlp ~]# yum --enablerepo=rpmforge install [Package]
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

2-Install Centos 7

[1] Insert CentOS install disk and start the Computer. Then, Following screen is...

3-Add an User

[1] Add an User "cent" as an example below. [root@dlp ~]# useradd cent [root@dlp ~]# passwd cent...

4-FireWall & SELinux

FireWall [1] If the Firewall on the server is unnecessarry (for example, because some firewalls...

5-Network Settings

[1] Set static IP address to the server.Replace the interface name "eno16777736" for your own...

6-Services

[1] It's possible to make sure services' status like follows. # display the list of services...