Quick start for using yum for Red Hat Linux 7.x
This quick start documentation expects that you're already comfortable with shell usage and RPM handling.
If you're unsure about a specific thing, you are suggested to switch over to the detailed instructions instead.
- Preliminaries
- In order to install yum, you'll need the gnupg, python and rpm-python packages. Please make sure they're all installed.
- Install yum
- yum is available through the legacy-utils channel of your public repository, which you can find at http://download.fedoralegacy.org/redhat/7.3/legacy-utils/i386/. Please download the latest yum package and install it on your system. yum automatically uses the correct configuration for your system (7.2 or
7.3), so you can install the above RPM on any 7.2 or 7.3 systems.
- Optionally add mirror sites
- You may want to configure it to use additional mirror sites
which are closer to you, faster, or meet your security policy. Select a mirror from the list of mirrors and change your yum.conf accordingly.
- Add the GPG keys to root's keyring
- In order to properly verify the packages, you need to add the appropriate
PGP keys to your root user's keyring. The keys are installed with the
yum documentation as part of the RPM installation, but not imported into
your keyring. To import the keys, use the following command as the root
user:
# gpg --import /usr/share/doc/yum-1.0.3/*GPG-KEY
- Update your system
- Once you have installed the yum package, you should run the following
command as the root user on your system to update your system:
# yum update
- Decide if you want automatic updates
- yum has the ability to automatically apply (download/verify/install) all
updates to your system, but this feature is disabled by default. If you want to
enable that functionality, please enter the following command as the root user
on your system:
# chkconfig yum on
# service yum start
- Subscribe to fedora-legacy-announce
- You may subscribe to the fedora-legacy-announce
mailing list to be informed by e-mail when new updates become available.
This step is optional, but highly recommended.