Tuesday, September 27, 2016

How To Manage Yum Repositories

Overview

The purpose of this guide is to know the usage of YUM (Yellowdog updater modified). It is an automatic updater and package installer/remover for rpm system(s).

One of the main features, it automatically identifies dependencies and ensures as to what packages needs to be installed to complete requested package installation.

You can also utilize yum to install a group of packages, one of such group is “Development Tools”.

Yum has a plugin interface for adding simple features. Yum can also be used with python programs via its module interface.

yum clean, cache option will help in managing the disk space at regular intervals on the system.

Applies To

  • Linux flavor where yum is installed
  • Tested on CentOS 7, RHEL 7

Yum Options

Yum command has different options for performing different type of package administration, some of major commands are discussed here.

Managing Yum Repositories

Repositories are sources location wherein yum lookup’s when you query, install, list, remove package(s).

List Enabled Yum Repositories

To list enabled yum repositories, run the command;

yum repolist enabled



List Disabled Yum Repositories

To list disabled yum repositories, run the command;

yum repolist disabled




List Enabled and Disabled Yum Repositories

To list all, irrespective of whether its enabled or disabled repositories, run the command;

yum repolist all




Install Package from Specific Repository

To install package from a specific repository, run the command;

yum --enablerepo=epel install clamav -y

yum list installed | grep -e 'clamav'


SlideShare Information

Step by step document with screenshots is uploaded to slideshare.



No comments:

Post a Comment