This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
Table of contents¶
yum-utils is a collection of tools and programs for managing yum repositories, installing debug
packages, source packages, extended information from repositories and administration. You can
install it like so:
Now you can add a repository e.g. like so:
EPEL represents "Extra Packages for Enterprise Linux". It is a repository that is found online. It develops and manages extra packages of standard quality. This repository is developed for Enterprise Linux, such as Oracle Linux (OL), CentOS, Scientific Linux (SL), and Red Hat Enterprise Linux (RHEL). Using Fedora, these packages were developed and tested.
EPEL packages are mainly based on Fedora, which means that these packages will never replace or conflict with packages in Enterprise Linux systems. EPEL shares so much of Fedora’s architecture, including the Bugzilla instance, build system, mirror manager, updates manager, and more.
Prevent packages from being updated¶
Sometimes you may want to restrict a package from being updated to a newer version. The Yum plugin
versionlock allows you to lock packages to a specific version. The plugin is not installed by
default so first, you will need to install it:
During the installation two configuration files will be created on your system, stored in the
/etc/yum/pluginconf.d directory. The configuration file
versionlock.conf and the file
versionlock.list containing the locked packages. By default, no packages are listed in this file.
To lock a version of a package you can either manually add the package name in the file or use the
$ yum versionlock command followed by the package name. For example, to prevent all PHP packages
(all packages starting with
php-) from being updated you would run:
If this cheat sheet has been useful to you, then please consider leaving a star here.