Discover package priority.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 10 Jan 2016 10:07:11 +0200
changeset 1861 c28dba308db9
parent 1860 7fe8efa766f4
child 1862 f4e844aa1217
Discover package priority.
debian-apt.rst
--- a/debian-apt.rst	Sun Jan 10 10:04:41 2016 +0200
+++ b/debian-apt.rst	Sun Jan 10 10:07:11 2016 +0200
@@ -64,6 +64,29 @@
   Pin: release o=Kali
   Pin-Priority: 50
 
+To discover package priority::
+
+  bash# apt-cache madison emacs24
+     emacs24 |   24.5+1-3 | http://ftp.us.debian.org/debian/ testing/main amd64 Packages
+     emacs24 |   24.4+1-5 | http://http.kali.org/kali/ kali-current/main amd64 Packages
+     emacs24 |   24.5+1-3 | http://ftp.us.debian.org/debian/ testing/main Sources
+
+  bash# apt-cache policy emacs24
+  emacs24:
+    Installed: 24.5+1-3
+    Candidate: 24.5+1-3
+    Version table:
+   *** 24.5+1-3 0
+          990 http://ftp.us.debian.org/debian/ testing/main amd64 Packages
+          100 /var/lib/dpkg/status
+       24.4+1-5 0
+           50 http://http.kali.org/kali/ kali-current/main amd64 Packages
+
+  bash# aptitude versions emacs24
+  Package emacs24:
+  p   24.4+1-5                                      kali-current              50
+  i   24.5+1-3                                      testing                   990
+
 Debian releases.
 ================
 
@@ -232,4 +255,3 @@
   $ apt-rdepends -r $PKG
   $ apt-rdepends -d $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg
   $ apt-rdepends -d -r $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg
-