Просмотр исходного кода

man: Document “dpkg-query -l” abbreviated state information

Closes: #383869

Based-on-patch-by: Marc-Jano Knopp <pub_br_debian.org@marc-jano.de>
Guillem Jover лет назад: 16
Родитель
Сommit
690f099bf2
2 измененных файлов с 37 добавлено и 0 удалено
  1. 3 0
      debian/changelog
  2. 34 0
      man/dpkg-query.1

+ 3 - 0
debian/changelog

@@ -161,6 +161,9 @@ dpkg (1.15.6) UNRELEASED; urgency=low
   * Document in the man page the effects of setting TMPDIR for dpkg and
   * Document in the man page the effects of setting TMPDIR for dpkg and
     dpkg-deb, HOME for dselect and dpkg and PAGER for dpkg. Closes: #572836
     dpkg-deb, HOME for dselect and dpkg and PAGER for dpkg. Closes: #572836
   * Document the exit codes for dpkg-query. Closes: #571798
   * Document the exit codes for dpkg-query. Closes: #571798
+  * Document “dpkg-query -l” abbreviated state information in the man page.
+    Based on a patch by Marc-Jano Knopp <pub_br_debian.org@marc-jano.de>.
+    Closes: #383869
 
 
   [ Modestas Vainius ]
   [ Modestas Vainius ]
   * Implement symbol patterns (Closes: #563752). From now on, it is possible to
   * Implement symbol patterns (Closes: #563752). From now on, it is possible to

+ 34 - 0
man/dpkg-query.1

@@ -26,6 +26,40 @@ with \*(lqlibc6\*(rq:
   \fBdpkg\-query \-l \(aqlibc6*\(aq\fP
   \fBdpkg\-query \-l \(aqlibc6*\(aq\fP
 .fi
 .fi
 
 
+The first three columns of the output show the desired action, the package
+status, and errors, in that order.
+
+Desired action:
+.nf
+  u = Unknown
+  i = Install
+  h = Hold
+  r = Remove
+  p = Purge
+.fi
+
+Package status:
+.nf
+  n = Not-installed
+  c = Config-files
+  H = Half-installed
+  U = Unpacked
+  F = Half-configured
+  W = Triggers-awaiting
+  t = Triggers-pending
+  i = Installed
+.fi
+
+Error flags:
+.nf
+  <empty> = (none)
+  R = Reinst-required
+.fi
+
+An uppercase status or error letter indicates the package is likely to
+cause severe problems. Please refer to \fBdpkg\fP(1) for information
+about the above states and flags.
+
 The output format of this option is not configurable, but varies
 The output format of this option is not configurable, but varies
 automatically to fit the terminal width. It is intended for human
 automatically to fit the terminal width. It is intended for human
 readers, and is not easily machine-readable. See \fB\-W\fP (\fB\-\-show\fP)
 readers, and is not easily machine-readable. See \fB\-W\fP (\fB\-\-show\fP)