rpm
Red Hat Package Manager
Red Hat Package Manager
Query RPM Repository
Query RPM Repository
Installed
Installed
rpm -qa | grep mysql
List all installed packages and filter for mysqlrpm -q --last libaio
List last update date for libaioInformation
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 packagerpm -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
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 packageBibliography
Bibliography
https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/https://github.com/oracle/ol-sample-scripts/blob/master/creating-rpm-packages/creating-rpm-packages.mdhttps://www.cyberciti.biz/faq/howto-list-installed-rpm-package/https://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/s1-rpm-using.htmlhttps://linuxhint.com/rpm-list-files-in-package/
https://www.percona.com/blog/2020/01/02/how-to-create-your-own-repositories-for-packages/