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