Monday, September 19, 2016

How To Manage Yum History

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 the major commands are discussed in this topic.

Yum History

The purpose of yum history is to view yum transaction history information like package(s) updated, removed, installed along with the user who performed these action(s), some of these options are to list, rollback, erase and repeat the yum commands from the history.

History Statistics

To view the yum statistics, run the command;

yum history stats


History Summary

To view the yum brief summary of all operations, run the command;

yum history summary




History List

To view the yum list or list all operations each action is associated with a transaction ID, run the command;

yum history list or
yum history





History Package List

To view the specific packages related actions performed along with transaction ID associated with the action(s), run the command;

yum history package-list psacct*



History Transaction Info

To view complete transaction information for a specific transaction ID, run the command;

yum history info 5

Note: Without transaction ID, the command will list last transaction ID information.



History Redo

To redo a specific transaction ID, run the command;

yum history redo 48




History Undo

To undo / rollback a specific transaction ID, run the command;

yum history undo 46



History New

To delete and start yum history afresh, run the command;

yum history new
yum history




SlideShare Information

Step by step guide with screenshots are uploaded to slideshare.



No comments:

Post a Comment