Exploring the yum package manager
Plugins and Repositories
Yum has many extensions that you can install easily from the repository. When you download a file, for example, the Fastestmirror plugin performs a background search for the fastest mirror server. To install and enable the plugin, type yum install yum-fastestmirror.
If multiple mirrors are available, install the Priorities plugin, which lets you control the priorities of the individual repositories:
yum -y install yum-priorities
After giving this command, you will find a priorities.conf file in /etc/yum/pluginconf.d/:
[main] enabled = 1 check_obsoletes = 1
To avoid legal issues, Fedora only provides software available under a free license. The default Fedora repositories do not include proprietary programs or, for licensing reasons, many other free applications, such as mplayer. Fortunately, some of these programs are available through third-party suppliers.
The most popular repositories include Livna, RPMforge, Dribble, freshrpms, and ATrpms. In Fedora 10, Dribble, freshrpms, and Livna combined to form a single repository known as RPM Fusion [1]. The unofficial Fedora FAQ page [2] describes how to add Livna, or RPM Fusion, as package source; for Fedora 10, simply enter:
# rpm -Uvh http://rpm.livna.org/livna-release-10.rpm
The configuration files for the various repositories are stored in /etc/yum-repos.d/. In these configuration files, you can enable or disable individual repositories with the enabled=1 or enabled=0 entries. Most repository files include several entries, but typically you only need the top one.
After completing a standard Fedora installation, including the RPM Fusion repository, you will have three configuration files below /etc/yum.repos.d/: fedora.repo, fedora-updates.repo, and livna.repo. Just set the top lines to enabled=1 and the others to enabled = 0.
Alternatively, you can delete and disable all additional repository entries by typing:
# rpm -e yum-priorities yum-fedorafaq livna-release
The yum-priorities plugin mentioned earlier is used here. yum repolist gives you a list of all enabled repositories.
Upgrading with Yum
Yum lets you upgrade a Fedora system to the next version on the fly. Unfortunately, this option sometimes doesn't work properly and typically requires some manual attention.
If you do decide to rely on yum upgrading for you, start by flushing your yum cache and updating the package sources. Listing 4 gives a short overview of the steps required for upgrading to Fedora 11. You'll find a more detailed howto in the Fedora wiki [3].
Listing 4
Upgrading to Fedora 11
yum clean all rpm -Uhv ftp://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-*.noarch.rpm yum upgrade
Package Groups
If you use Ubuntu and occasionally need to compile something, you will be familiar with the build-essential package. build-essential is not a Debian package in the strictest sense, but a meta package that automatically installs a software selection. Fedora has a similar feature but calls it package groups.
yum grouplist gives you a list of available package groups. Note the Development Tools group, which you can install by typing:
# yum -y groupinstall 'Development Tools'
If you want to install all the available games, or maybe all the available office programs, just pick the right category from the list and install as described above.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Endless OS 6 has Arrived
After more than a year since the last update, the latest release of Endless OS is now available for general usage.
-
Fedora Asahi 40 Remix Available for Macs with Apple Silicon
If you've been anticipating KDE's Plasma 6 for your Apple Silicon-powered Mac, then you're in luck.
-
Red Hat Adds New Deployment Option for Enterprise Linux Platforms
Red Hat has re-imagined enterprise Linux for an AI future with Image Mode.
-
OSJH and LPI Release 2024 Open Source Pros Job Survey Results
See what open source professionals look for in a new role.
-
Proton 9.0-1 Released to Improve Gaming with Steam
The latest release of Proton 9 adds several improvements and fixes an issue that has been problematic for Linux users.
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.