Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:debian [2009/05/25 00:35] 127.0.0.1 external edit |
linux:debian [2010/03/04 13:49] (current) a |
||
|---|---|---|---|
| Line 160: | Line 160: | ||
| # | # | ||
| - | | + | ==== Some dpkg-hacks ==== |
| - | \\ | + | |
| - | dpkg-query -W --showformat=' | + | |
| + | | ||
| + | | ||
| dpkg --get-selections | awk '{ print $1; }'| tr " | dpkg --get-selections | awk '{ print $1; }'| tr " | ||
| + | **Sorting debian packages installed by size** | ||
| + | | ||
| Line 185: | Line 186: | ||
| Delete the file ' | Delete the file ' | ||
| + | |||
| + | ==== Create a backup list of packages and resinstall ==== | ||
| + | |||
| + | sudo dpkg --get-selections > package_list.txt | ||
| + | |||
| + | Save the text file on a thumb drive, format the drive, reinstall Ubuntu/ | ||
| + | |||
| + | sudo dpkg --set-selections < package_list.txt | ||
| + | sudo apt-get -y update | ||
| + | sudo apt-get dselect-upgrade | ||

