Yum Repository Management

yum

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.

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
About Suhesh KS 24 Articles
Mr. Suhesh KS is Linux System Administrator by profession with 11 Years of work experience in Linux system administration in web hosting, data center and data warehousing industry and have worked with reputed support companies. He has wide range of skills include team management, system administration ( Linux ), programming ( bash, perl, php, java ), web hosting, data center support, seo analysis.