dpkg-query - a tool to query the dpkg database
dpkg-query -l aqlibc6*aq
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. See -W (--show) and --showformat for a way to configure the output format.
In the format string, lq\rq introduces escapes:
\n newline \r carriage return \t tab
lq\rq before any other character suppresses any special meaning of the following character, which is useful for lq\rq and lq$rq.
Package information can be included by inserting variable references to package fields using the syntax lq${field[;width]}rq. Fields are printed right-aligned unless the width is negative in which case left alignment will be used. The following fields are recognised:
Architecture Bugs Conffiles Config-Version Conflicts Breaks Depends Description Enhances Essential Filename Installed-Size MD5sum MSDOS-Filename Maintainer Origin Package Pre-Depends Priority Provides Recommends Replaces Revision Section Size Source Status Suggests Version
The default format string is lq${Package}\t${Version}\nrq. Actually, all other fields found in the status file (i.e. user defined fields) can be requested, too. They will be printed as-is, though, no conversion nor error checking is done on them. To get the name of the dpkg maintainer and the installed version, you could run:
dpkg-query -W -f='${Package} ${Version}\t${Maintainer}\n' dpkg
This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO warranty.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |