How to use yum command on CentOS/RHEL

www.lautt‮ru‬i.com
How to use yum command on CentOS/RHEL

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 a package: To install a package, use the 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 a package: To update a package to the latest version, use the 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 a package: To remove a package, use the 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 for a package: To search for a package, use the 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 installed packages: To list all installed packages, use the 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.

Created Time:2017-10-29 22:08:41  Author:lautturi