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
subscription-manager register --username=<name> --password=<password>
subscription-manager list --available
subscription-manager attach --auto
subscription-manager list --consumed
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
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.
sudo yum install httpd
will let you install httd
(Apache) web server.
sudo yum update
: Updates all packages
sudo yum update httpd
: Updates a single package
sudo yum remove httpd
: removed the httpd package
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
is a fantastic command that lets you keep track of the packages you installed, removed, or updated so far.
You can even roll back to the previous version of a package. For example:
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
​