Differences between revisions 7 and 11 (spanning 4 versions)
Revision 7 as of 2008-02-22 17:11:49
Size: 788
Editor: Mac
Comment:
Revision 11 as of 2008-02-22 17:31:23
Size: 1564
Editor: Mac
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
To check the state of all packages on your system:
To check the status of all packages on your system:
Line 13: Line 14:
This will show all packages that are in various stages of install (this includes packages that were removed but not purged). To show only the installed: 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:
Line 20: Line 21:
== See also ==
 * /var/lib/dpkg/status
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

You can also find package information in (you can use DebPkg:mc to browse these):

 * /var/lib/apt/lists/*
 * /var/lib/dpkg/available

== 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 PackageManagementtools to install the package :

 * dselect

Select ‘i‘ for install the software

language en

Translation(s):

(!) ["/Talk"]

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:

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'

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

You can also find package information in (you can use mc to browse these):

  • /var/lib/apt/lists/*
  • /var/lib/dpkg/available

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 ?PackageManagementtools to install the package :

  • dselect

Select ‘i‘ for install the software


CategoryPackageManagement