yum package manager

yum (Yellowdog Updater, Modified) is a command-line package manager for RPM-based Linux distributions such as CentOS, Red Hat, and Fedora. yum enables you to install a package and all its dependencies, delete a package, upgrade existing packages, search for packages, etc. The syntax of the yum command is:

yum [OPTIONS] [COMMAND] [PACKAGE]

To install a new package using yum, use the yum install command, along with the name of the package. For example, to install the net-tools package, we would use the yum install net-tools command:

yum install package

To update a package to the latest version, use the yum update command, along with the name of the package:

yum update package

To perform a full system update, use the yum update command.

To display information about an installed package, use the yum info command and the name of the package:

yum info package

To search for a specific package, use the yum search command, along with the keyword that will be searched for. The search command will search package names, summaries, packagers, and descriptions for the keyword you provide:

yum search package

To remove a package, use the yum remove command. For example, to remove the net-tools package we have installed previously, we would use the yum remove net-tools command:

yum remove package

Subscribe to our Newsletter

Like us on Facebook

top
Geek University 2019