Yum is a package manager that is used in RHEL (Red Hat Enterprise Linux) systems to install, update, and remove software packages. Here are some common uses of the yum
command in RHEL 5/6/7/8/9:
- Update all packages:
yum update
This command will download and install all updates for all packages on the system.
- Install a package:
yum install package_name
This command will download and install a package named
package_name
. - Remove a package:
yum remove package_name
This command will remove a package named
package_name
. - Search for a package:
yum search package_name
This command will search for a package with the name
package_name
and display a list of matching packages. - List installed packages:
yum list installed
This command will display a list of all installed packages on the system.
- Check for package dependencies:
yum deplist package_name
This command will display a list of dependencies required by the package
package_name
. - Display package information:
yum info package_name
This command will display detailed information about the package
package_name
, including the version, description, and dependencies. - Clean package cache:
yum clean all
This command will clean the local package cache, freeing up disk space.
Note that the specific commands and procedures for using yum
may vary depending on your system and the version of RHEL you are using. Be sure to consult the RHEL documentation or support resources if you encounter any issues or have questions about using the yum
command.