Chapter 8. Yum and Repositories

In this chapter, we'll cover the following recipes:

  • Managing yum history
  • Creating a copy (mirror) of any (RHN) repository
  • Configuring additional repositories
  • Setting up yum to automatically update
  • Configuring logrotate for yum
  • Recovering from a corrupted RPM database


Originally, you needed to compile your GNU/Linux system manually from source, which used to be time consuming and could be problematic if you couldn't get your dependencies straight. Red Hat created Red Hat Package Manager (RPM) in 1998 to address the concerns of dependencies and reduce the time needed to install a system (among others). Since then, RPM has been improved by the Open Source community. One such improvement is yum.

Yellowdog Updater, ...

Get Red Hat Enterprise Linux Server Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.