yum, command is an interactive, open source, rpm based, the package manager for a CentOS/RHEL and clones. It can automatically perform the following operations for you:
- Core system file updates
- Package updates
- Install a new packages
- Delete of old packages
- Perform queries on the installed and/or available packages
yum where is package installed
The syntax is as follows to install htop package for a demo purpose:
# yum install htop
To list the files installed by a yum package called htop, run the following rpm command:
# rpm -q {packageNameHere}
# rpm -ql htop
How to see the files installed by a yum package using the repoquery command
First, install yum-utils package using yum command:
# yum install yum-utils
How do I list the contents of an installed package using YUM?
Now run "repoquery" command as follows:
# repoquery --list htop
OR
# repoquery -l htop