Yum is the package management system that is used on CentOS Linux. It is responsible for managing packages and their dependencies from Yum repositories, as defined in /etc/yum.repos.d/
In this post, we’ll cover a few common and useful yum commands:
1. Install a yum package:
1 | yum install PACKAGE_NAME |
2. Remove a yum package:
3. Reinstall a yum package:
1 | yum reinstall PACKAGE_NAME |
4. Search for a yum package:
5. Display the information of a yum package:
6. Update installed yum packages:
7. Update specific yum package:
8. Show yum history:
9. Show a list of enabled yum repositories:
10. Find which yum package provides a particular file (eg: /usr/bin/nc):
1 | yum whatprovides "*bin/nc" |
11. Clear yum cache:
No comments:
Post a Comment