Yum Repository Management

April 26, 2016 by No Comments

Yum is a software package manager that installs, updates, and removes packages on RPM-based systems. It automatically computes dependencies and figures out what things should occur to install packages. yum makes it easier to maintain groups of machines without having to manually update each one using rpm.

Adding a Yum Repository

To define a new repository, you can add a .repo file in the /etc/yum.repos.d/ directory. All files with the .repo file extension in this directory are read by yum.

You can add it using commandline.

yum-config-manager --add-repo repository_url
yum-config-manager --add-repo https://www.eazylinux.com/eazylinux.repo
note: the url is a test url, use the respective url from the repository.

Disable / Enable Repo

Change the following line in the repo file for the respective repository to disable it. Check www.bluesprucemaids.com/.

enabled=0 [ 0 - Disabled, 1 - enabled ]

You can install/enable epel repo using the following command.

yum install epel-release

To enable access to both the atomic yum repository use the following automated installer:

wget -q -O - http://www.atomicorp.com/installers/atomic | sh