HowTo: RPM List Files

h‮tt‬ps://www.lautturi.com
HowTo: RPM List Files

To list the files that are included in an RPM package on a Linux system, you can use the rpm command with the -ql option.

For example, to list the files in the package_name RPM package, you can use the following command:

rpm -ql package_name

This will list the files that are included in the package_name RPM package, along with their paths.

You can also use the -qp option to list the files in an RPM package that is not installed on the system. For example:

rpm -qp package.rpm

Replace package.rpm with the path to the RPM package file.

You can also use the -qlp option to list the files in an RPM package file in a long format, which includes the file size, modification time, and other information. For example:

rpm -qlp package.rpm

The rpm command is a powerful tool for managing RPM packages on a Linux system. You can use it to install, upgrade, and remove packages, as well as query and verify the contents of installed packages.

It's a good idea to use the rpm command to list the files in an RPM package before installing it, to ensure that you are aware of what will be installed on your system. This can help you to avoid installing unnecessary or unwanted software.

Created Time:2017-10-29 22:08:45  Author:lautturi