Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to list files installed through RPM or DEB packages in Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to list the files installed through RPM or DEB package in Linux. It is very detailed and has certain reference value. Friends who are interested must read it!

How to list the files of all installed packages in Linux

You can use the repoquery command, which is part of yum-utils, to list the files installed on the CentOS/RHEL system for a given package.

To install and use yum-utils, run the following command:

# yum update # yum install yum-utils

Now you can list the files of an installed package, such as the httpd server (note that the package name is case-sensitive). -- installed indicates that packages have been installed, and-l lists all the files:

# repoquery-- installed-l httpd # dnf repoquery-- installed-l httpd [On Fedora 22 + versions]

Repoquery lists the files installed by httpd

Important: in Fedora 22 and above, the repoquery command has been integrated with the dnf package manager in RPM-based distributions, and you can use the above method to list the installed files.

In addition, you can also use the following rpm command to list the files in the .rpm package or the installed .rpm package, with the following-Q and-l listing the files in the subsequent package:

# rpm-ql httpd

Rpm queries the installation package of the installed program

Another useful suggestion is to use-p to list the files in .rpm before installation.

# rpm-qlp telnet-server-1.2-137.1.i586.rpm

In a Debian/Ubuntu distribution, you can use the dpkg command with the-L flag to list the installation files for a given .deb package in the Debian system or its derivative.

In this example, we will list the files installed by the apache2 Web server:

$dpkg-L apache2

The above is all the contents of the article "how to list files installed through RPM or DEB packages in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report