CompTIA Linux+ (XK0-004)
Red Hat Enterprise Linux
More Resources
Git and Github
Learn Docker and Kubernates
Tips and Tricks

Software Updates

Software updates on RHEL

Software Updates

  • System Registration

    • Requires a valid subscription with Red Hat

    • System must be registered in order to activate RHEL repositories

  • Registering with the GUI

    • Applications -> System Tools -> Red Hat Subscription Manager

  • Registering with the CLI

    1. subscription-manager register --username=<name> --password=<password>

    2. subscription-manager list --available

    3. subscription-manager attach --auto

    4. subscription-manager list --consumed

    5. subscription-manager unregister

  • Once you registered, now you can perform the Software update

    • sudo yum update

Updating via the GUI

Applications -> System Tools -> Application Installer Applications -> System Tools -> Software Update

Adding new software

Searching for a package:

yum list: It shows the software that's available to download and also that's installed on the system.

yum list <package_name>: For this to work, you must know the exact package name.

Ex: yum list apache. Unfortunately, Apache isn't available under the name of apache, it is rather httpd. So to locate that, you must know httpd.

yum info <package_name>: This yum info command gives you information about the package that's both installed/not installed.

yum search <term>: when you don't know the exact package name, you can search for the term and it will throw anything that it can find with the term.

Installing a single package:

sudo yum install httpd will let you install httd (Apache) web server.

Updating all Packages vs. Updating a Single Package:

sudo yum update: Updates all packages

sudo yum update httpd: Updates a single package

Removing a Package

sudo yum remove httpd: removed the httpd package

Group Package Install:

sudo yum group list (new system) or sudo yum grouplist (old systems)

To install one of these group packages, you simply need to type in as sudo yum group install "Development tools", for development tools.

Yum History

yum history is a fantastic command that lets you keep track of the packages you installed, removed, or updated so far.

Roll Back to a Previous Version

You can even roll back to the previous version of a package. For example:

Yum Repos:

cat /etc/yum.repos.d: You can find all the repos that are enabled to get packages from. By default, there are only a few that are enabled. But you can enable them as per your requirements.

enabled = 0 signifies that this isn't enabled yet.

enabled = 1 signified that's enabled.

yum repolist all

yum repolist enabled