more on apt-get and dpkg
authorPhilip Durbin <philipdurbin@gmail.com>
Wed, 18 Apr 2012 01:53:51 +0000 (21:53 -0400)
committerPhilip Durbin <philipdurbin@gmail.com>
Wed, 18 Apr 2012 01:53:51 +0000 (21:53 -0400)
ubuntu.mdwn

index f0e8291..9f742a3 100644 (file)
@@ -1,9 +1,32 @@
+<https://help.ubuntu.com/community/AptGet/Howto>
+
+<https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora>
+
+    # show installed packages
+    dpkg --list
+
+    # show infor for a package
+    dpkg --status package_name
+
+    # show files owned by a package
+    dpkg --listfiles package_name
+
+    # resynchronize the package index files from their sources
     apt-get update
+
+    # install the newest versions installed packages
     apt-get upgrade
+
+    # install packages that are "kept back"
     apt-get dist-upgrade
 
+    # for clearing out unused linux-headers, for example
+    apt-get autoremove
+
+## `apt-get dist-upgrade`
+
 "-y  Assume Yes to all queries and do not prompt" is not recommended for `apt-get dist-upgrade`
 
-<https://help.ubuntu.com/community/AptGet/Howto>
+http://askubuntu.com/questions/601/the-following-packages-have-been-kept-back-why-and-how-do-i-solve-it
 
-<https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora>
+http://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade