dpkg-query.8 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .TH DPKG\-QUERY 8 "August 2001" "Debian Project" "dpkg suite"
  2. .SH NAME
  3. dpkg\-query \- a tool to query the dpkg database
  4. .SH SYNOPSIS
  5. .B dpkg-query
  6. .SH DESCRIPTION
  7. \fBdpkg-query\fP is a tool to show information about packages listed in
  8. the \fBdpkg\fP database.
  9. .SH COMMANDS
  10. .TP
  11. \fB-l\fP | \fB--list\fP \fIpackage-name-pattern\fP ...
  12. List packages matching given pattern. If no \fIpackage-name-pattern\fP
  13. is given, list all packages in \fI/var/lib/dpkg/available\fP. Normal
  14. shell wildchars are allowed in \fIpackage-name-pattern\fP. Please note
  15. you will probably have to quote \fIpackage-name-pattern\fP to prevent
  16. the shell from performing filename expansion. For example this will
  17. list all package names starting with \*(lqlibc5\*(rq:
  18. .T
  19. .nf
  20. \fBdpkg-query -l 'libc5*'\fP
  21. .fi
  22. .TP
  23. \fB-W\fP | \fB--show\fP \fIpackage-name-pattern\fP ...
  24. Just like the \fB--list\fP option this will list all packages matching
  25. the given pattern. However the output can be customized using the
  26. \fB--showformat\fP option.
  27. .TP
  28. \fB-s\fP | \fB--status\fP \fIpackage-name\fP ...
  29. Report status of specified package. This just displays the entry in
  30. the installed package status database.
  31. .TP
  32. \fB-L\fP | \fB--listfiles\fP \fIpackage\fP ...
  33. List files installed to your system from \fBpackage\fP.
  34. However, note that files created by package-specific
  35. installation-scripts are not listed.
  36. .TP
  37. \fB-S\fP | \fB--search\fP \fIfilename-search-pattern\fP ...
  38. Search for a filename from installed packages. All standard shell
  39. wildchars can be used in the pattern.
  40. .TP
  41. \fB-p\fP |\fB--print-avail\fP package
  42. Display details about \fIpackage\fP, as found in
  43. \fI/var/lib/dpkg/available\fP.
  44. .TP
  45. \fB--licence\fP | \fB--license\fP
  46. Display licence and copyright information.
  47. .TP
  48. \fB--version\fP
  49. Display version information.
  50. .SH OPTIONS
  51. .TP
  52. \fB--admindir=\fIdir\fP
  53. Change the location of the \fBdpkg\fR database. The default location is
  54. \fI/var/lib/dpkg\fP.
  55. .TP
  56. \fB--showformat=\fP\fIformat\fR
  57. This option is used to specify the format of the output \fB--show\fP
  58. will produce. The format is a string that will be output for each package
  59. listed. It can include the standard escape sequences \en (newline), \er
  60. (carriage return) or \e\e (plain backslash). Package information can be
  61. included by inserting variable references to package fields using the
  62. ${var[;width]} syntax. Fields are printed be right-aligned unless the
  63. width is negative in which case left alignment will be used.
  64. .SH ENVIRONMENT
  65. .TP
  66. \fBCOLUMNS\fP
  67. This setting influences the output of the \fB--list\fP option by changing
  68. the width of its output.
  69. .SH AUTHOR
  70. Copyright 2001 Wichert Akkerman
  71. .UR mailto:wakkerma@debian.org
  72. <wakkerma@debian.org>
  73. .UE
  74. .sp
  75. This is free software; see the GNU General Public Licence version 2 or
  76. later for copying conditions. There is NO warranty.
  77. .SH SEE ALSO
  78. .BR dpkg (8)