The yum
command is a package manager for CentOS and Red Hat Enterprise Linux (RHEL) systems that is used to install, update, and remove software packages.
To use the yum
command, you will need to be logged in as the root user or a user with sudo
privileges.
Here are some common tasks that you can perform with the yum
command:
install
subcommand and specify the name of the package. For example, to install the nano
text editor, you can use the following command:yum install nano
update
subcommand and specify the name of the package. For example, to update the nano
text editor, you can use the following command:yum update nano
remove
subcommand and specify the name of the package. For example, to remove the nano
text editor, you can use the following command:yum remove nano
search
subcommand and specify a search term. For example, to search for packages containing the word editor
, you can use the following command:yum search editor
list
subcommand and specify the installed
option. For example, to list all installed packages, you can use the following command:yum list installed
These are just a few examples of the tasks that you can perform with the yum
command. For more information and a full list of options, you can consult the yum
man page by running the man yum
command.