rpm

Red Hat Package Manager

Query RPM Repository

Installed

rpm -qa | grep mysql

List all installed packages and filter for mysql

rpm -q --last libaio

List last update date for libaio

Information

rpm -qi mysql-commercial-server-8.0.23-1.1.el7.x86_64

Show information about the mysql-commercial-server-8.0.23-1.1.el7.x86_64 package

rpm -qi mysql-commercial-server-8.0.23-1.1.el7.x86_64 | grep Relocations

Show whether mysql-commercial-server-8.0.23-1.1.el7.x86_64 is relocatable (i.e. can it be installed to a different location)

Files

rpm -q mysql-commercial-server-8.0.23-1.1.el7.x86_64 --fileprovide

rpm -ql mysql-commercial-server-8.0.23-1.1.el7.x86_64

Both commands list the full path of files provided by the mysql-commercial-server-8.0.23-1.1.el7.x86_64 package