RPM is a package manager available for most versions of Linux. The rpm command is used to install and uninstall software from the command line. Once software is installed, you can use the -q option to query for installed packages. The -a option shows all. So to see a list of all packages installed, use both:
rpm -qa
When you locate the name of a package you’d like to know more about, use the -i to get more information, along with the -q to query, followed by the name of the package:
rpm -qi libcap
This shows a list of all the files installed as part of the package.