Use the rpm command to check whether the software is installed. First we need to see whether the software has been installed, or the package name to view the installation. Such as finding whether to install jenkins
1, lists all installed Jenkins
rpm -qa | grip jenkins
2, the software is installed; for example: jenkins is installed
rpm -q | grep jenkins
3, rpm -ql lists the files installed by the package
rpm -ql jenkins
4, can be used directly rpm -qal | grep mysql mysql view all file storage location of the installation package
-qal RPM | grep jenkins jenkins # view all file storage location of the installation package
Access to relevant information package with the rpm -q, q indicates that the query query, can be followed by other options.
a representation all, execute queries in all packages