Contents
How to query the dpkg database in Linux?
dpkg-query – a tool to query the dpkg database . SYNOPSIS top. dpkg-query [option…] command. DESCRIPTION top. dpkg-query is a tool to show information about packages listed in the dpkg database. COMMANDS top. -l, –list [package-name-pattern…] List all known packages matching one or more patterns,
Where do I find control files in dpkg?
However, note that files created by package-specific installation- scripts are not listed. –control-list package-name List control files installed to your system from package- name (since dpkg 1.16.5).
Which is the pager command in dpkg 1.19?
PAGER DPKG_PAGER Sets the pager command to use (since dpkg 1.19.1), which will be executed with « $SHELL -c ». If SHELL is not set, « sh » will be used instead. The DPKG_PAGER overrides the PAGER environment variable (since dpkg 1.19.2).
How to display the status of a package in dpkg?
If no package-name is specified it will display all package entries in the status database (since dpkg 1.19.1). When multiple package-name entries are listed, the requested status entries are separated by an empty line, with the same order as specified on the argument list. -L, –listfiles package-name
What does Shell do in dpkg 1.19.2?
External environment SHELL Sets the program to execute when spawning a command via a shell (since dpkg 1.19.2). PAGER DPKG_PAGER Sets the pager command to use (since dpkg 1.19.1), which will be executed with « $SHELL -c ». If SHELL is not set, « sh » will be used instead.
How to include package information in dpkg query?
Package information can be included by inserting variable references to package fields using the syntax “ $ {field [;width] } ”. Fields are printed right-aligned unless the width is negative in which case left alignment will be used.
What is the environment less defined by dpkg-query?
Internal environment LESS Defined by dpkg-query to “ -FRSXMQ ”, if not already set, when spawning a pager (since dpkg 1.19.2).
Is the dpkg output format configurable for humans?
Please refer to dpkg (1) for information about the above states and flags. The output format of this option is not configurable, but varies automatically to fit the terminal width. It is intended for human readers, and is not easily machine- readable.