There might come a time when you want to know if you have already installed a certain package on your RHEL 8 / CentOS 8. An application to be manually installed might require certain dependencies to work so you’ll have to check beforehand if these are satisfied. Or you might want to compile something and want to make sure you have all the right header libraries on your system.
In this tutorial you will learn:
- How to use yum and dnf in RHEL 8 / CentOS 8 to list all packages
- How to use the repoquery command to accomplish the same task
- How to use the rpm command to list all packages installed on RHEL 8 / CentOS 8
- How to filter the output of each command to seek certain packages