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 use the Linux dpkg-query command

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Most people do not understand the knowledge of this "Linux dpkg-query command how to use" article, so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "Linux dpkg-query command how to use" article.

Query tool of software package in dpkg-queryDebian Linux

Syntax dpkg-query (options) (parameters) option-l: list the packages that match the matching pattern;-s: query the status information of the package;-L: display the list of files installed by the package;-S: query the files from the installed package;-w: display the package information;-c: display the control file path of the package;-p: show the details of the package. Parameter package name: specifies the package to be queried.

Instance to find the package in which the file file1 is installed:

Dpkg-query-S file1 lists the software installed under ubuntu:

Dpkg-query-W-- showformat='$ {Package} ${Version}\ n'> filename View package details:

Dpkg-query-s capistrano views the list of files installed on the system when the package is installed:

Dpkg-query-L capistrano lists all installed packages:

Dpkg-query-l check the exact status of the package (whether it is installed or not) and the version number:

Dpkg-query-W-fenestration ${Status} ${Version}\ n 'apache-perl above is about "how to use Linux dpkg-query commands". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please 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

Development

Wechat

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

12
Report