List all the Files in a Package using rpm -qlp Install Date: (not installed) Build Host: Ĩ. If you have an RPM file that you would like to install, but want to know more information about it before installing, you can do the following: # rpm -qip MySQL-client-3.23. Group : Applications/Databases Source RPM: MySQL-3.23.ĭescription : This package contains the standard MySQL clients. ![]() ![]() Install Date: Mon 03:19:16 AM PST Build Host: Release : 1 Build Date: Mon 11:08:28 PM CEST Name : MySQL-client Relocations: (not relocatable) Rpm command provides a lot of information about an installed pacakge using rpm -qi as shown below: # rpm -qi MySQL-client Information about Installed RPM Package using rpm -qi ![]() The following command, gives the location of all the manual pages related to mysql package. Use the following to know the list of documentations, for a package that owns a file. Locate documentation of a package that owns file using rpm -qdf The following example shows that /usr/bin/mysqlaccess file is part of the MySQL-client-3.23.57-1 rpm. Let us say, you have list of files and you would want to know which package owns all these files. Which RPM package does a file belong to? – Use rpm -qf Rpm command provides an option –queryformat, which allows you to give the header tag names, to list the packages. Query RPM Packages in a various format using rpm –queryformat If the package name is incorrect, then rpm command will report that the package is not installed. Note: To query a package, you should specify the exact package name. After installation of a package to check the installation, you can query a particular package and verify as shown below. The above example lists all currently installed package. ![]() Query a Particular RPM Package using rpm -q Following command checks whether cdrecord package is installed on your system. To identify whether a particular rpm package is installed on your system, combine rpm and grep command as shown below. You can use rpm command to query all the packages installed in your system. You can also use dpkg on Debian, pkgadd on Solaris, depot on HP-UX to install packages. -h : print hash marks as the package archive is unpacked.The following rpm command installs Mysql client package.
0 Comments
Leave a Reply. |