YUM is the primary package management tool for installing, updating, removing, and managing software packages in Red Hat Enterprise Linux. YUM performs dependency resolution when installing, updating, and removing software packages.
YUM can manage packages from installed repositories in the system or from. You can learn more about adding repositories to your system from this article on how to add a YUM repo from Amy Marrich. There are many options and commands available to use with YUM. I've listed some commonly-used commands for YUM below:. The history option gives you an overview of what happened in past transactions.
This provides some useful information, like the date when the transaction happened and what command was run. You can undo or redo certain transactions using the history command. Here is an example of undoing a transaction:. YUM provides many options for package management. For detailed option information, look at man yum and yum —help. Also, here is a link to YUM documentation. Using RPM , you can install, uninstall, and query individual software packages.
YUM Remove. YUM Autoremove. YUM Upgrade. YUM Upgrade Nftables. YUM Group List. YUM Group Info. YUM Group Install. YUM Repolist. YUM Deplist. To install a package called Firefox 14 , just run the below command it will automatically find and install all required dependencies for Firefox.
The above command will ask confirmation before installing any package on your system. If you want to install packages automatically without asking any confirmation, use option -y as shown in below example. To remove a package completely with their all dependencies, just run the following command as shown below. Same way the above command will ask confirmation before removing a package.
To disable confirmation prompt just add option -y as shown in below. Just run the following command it will automatically resolves all dependencies issues and install them. Use the list function to search for the specific package with name.
For example to search for a package called openssh , use the command. To make your search more accurate, define package name with their version, in case you know. For example to search for a specific version openssh For example, to search all the packages that matches the word.
Say you would like to know information of a package before installing it. To get information of a package just issue the below command.
In this tutorial, we will learn how to use the Yum command in Linux. If we have an rpm package available on the local system or we have an URL, we can also install it with yum,. Rather than updating complete packages, we can only apply the updates to security related packages,.
To downgrade an installed package that has been updated previously, we can use the following command,. To reinstall a package on the system, to address any issue that might have arisen due to misconfiguration or deletion of a file, use the following command,. This will provide list of all transactions with a serial number assigned to all transactions.
These serial number can further be used to perform some operations like. With this we end our tutorial on how to use Yum command in Linux, please feel free to send in any questions or queries using the comment box below.
0コメント