dpkg-query.8 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. This command will not list
  40. extra files created by maintainer scripts, nor will it list
  41. alternatives.
  42. .TP
  43. \fB-p\fP |\fB--print-avail\fP package
  44. Display details about \fIpackage\fP, as found in
  45. \fI/var/lib/dpkg/available\fP.
  46. .TP
  47. \fB--licence\fP | \fB--license\fP
  48. Display licence and copyright information.
  49. .TP
  50. \fB--version\fP
  51. Display version information.
  52. .SH OPTIONS
  53. .TP
  54. \fB--admindir=\fIdir\fP
  55. Change the location of the \fBdpkg\fR database. The default location is
  56. \fI/var/lib/dpkg\fP.
  57. .TP
  58. \fB--showformat=\fP\fIformat\fR
  59. This option is used to specify the format of the output \fB--show\fP
  60. will produce. The format is a string that will be output for each package
  61. listed. It can include the standard escape sequences \en (newline), \er
  62. (carriage return) or \e\e (plain backslash). Package information can be
  63. included by inserting variable references to package fields using the
  64. ${var[;width]} syntax. Fields are printed be right-aligned unless the
  65. width is negative in which case left alignment will be used.
  66. .SH ENVIRONMENT
  67. .TP
  68. \fBCOLUMNS\fP
  69. This setting influences the output of the \fB--list\fP option by changing
  70. the width of its output.
  71. .SH AUTHOR
  72. Copyright 2001 Wichert Akkerman
  73. .UR mailto:wakkerma@debian.org
  74. <wakkerma@debian.org>
  75. .UE
  76. .sp
  77. This is free software; see the GNU General Public Licence version 2 or
  78. later for copying conditions. There is NO warranty.
  79. .SH SEE ALSO
  80. .BR dpkg (8)