|Deletions are marked like this.||Additions are marked like this.|
|Line 60:||Line 60:|
|* [http://manpages.debian.net/man/8/dpkg-www dpkg-www]|
This page is about the ways to list the installed packages in a Debian system and how to create a file with this list. This file can be uploaded to the web (i.e. from other computer with Internet connection) to download new packages.
List all packages installed:
And to store in a file:
dpkg --list > /backup/installed-software.log
To check the status of all packages on your system:
- dpkg -l | more
This will show all packages (1 line each) that are in various stages of install (this includes packages that were removed but not purged). To show only the installed:
dpkg -l | grep '^i'
to filter through grep to get results for "i"
The command above is some how redundant, because dpkg support wild characters, doing this instead
- dpkg -l "ii"
You can also use:
You can if you are using Debian Linux use dpkg command to list installed software:
- dpkg --get-selections
And store the list installed software to a file called /backup/installed-software.log
$ dpkg --get-selections > /backup/installed-software.log
- /var/lib/dpkg/available: list of available packages.
- /var/lib/dpkg/status :statuses of available packages. This file contains information about whether a package is marked for removing or not, whether it is installed or not, etc. A package marked reinst-required is broken and requires reinstallation.
Restore installed software
After re-installing base system you can immediately re-install all software.
All you have to do is type following two commands:
dpkg --set-selections < /backup/installed-software.log
Now your list is imported use dselect, ["Synaptic"] or other PackageManagement tools to install the package :
Select ‘i‘ for install the software
You can also use “apt-get dselect-upgrade” instead of dselect
All this with a single command:
apt-get install `cat installed-software.log`
debfoster - If dependency changes, debfoster ask if you want to remove the old package.
[http://www.howtogeek.com/howto/linux/show-the-list-of-installed-packages-on-ubuntu-or-debian/ Show the List of Installed Packages on Debian].