more on apt-get and dpkg
[wiki.git] / ubuntu.mdwn
1 <https://help.ubuntu.com/community/AptGet/Howto>
2
3 <https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora>
4
5     # show installed packages
6     dpkg --list
7
8     # show infor for a package
9     dpkg --status package_name
10
11     # show files owned by a package
12     dpkg --listfiles package_name
13
14     # resynchronize the package index files from their sources
15     apt-get update
16
17     # install the newest versions installed packages
18     apt-get upgrade
19
20     # install packages that are "kept back"
21     apt-get dist-upgrade
22
23     # for clearing out unused linux-headers, for example
24     apt-get autoremove
25
26 ## `apt-get dist-upgrade`
27
28 "-y  Assume Yes to all queries and do not prompt" is not recommended for `apt-get dist-upgrade`
29
30 http://askubuntu.com/questions/601/the-following-packages-have-been-kept-back-why-and-how-do-i-solve-it
31
32 http://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade