Differences between revisions 2 and 23 (spanning 21 versions)
Revision 2 as of 2008-02-22 15:47:02
Size: 816
Editor: Mac
Comment:
Revision 23 as of 2008-02-22 18:25:43
Size: 2297
Editor: Mac
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
||<tablestyle="width: 100%;" style="border: 0px hidden">~-Translation(s):  -~ ||<style="text-align: right; border: 0px hidden"> (!) [:/Talk:Talk]||
[[BR]]
language en
||<tablewidth="100%">~-Translation(s): -~ ||<style="TEXT-ALIGN: right"> (!) ["/Talk"] ||
Line 9: Line 9:
 * DebPkg:dpkg --list  * DebPkg:dpkg --list
And
to store in a file:
Line 11: Line 12:
To  check the state of all packages on your system:  * dpkg --list > /backup/installed-software.log
To check the status of all packages on your system:
Line 13: Line 15:
 * dpkg -l | more  * 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:
Line 15: Line 18:
It will show all packages that are in various
stages of install (this includes packages that were removed but not purged). To see only the installed :
 
dpkg -l | grep '^i'
 * dpkg -l | DebPkg:grep '^i'
to filter through grep to get results for "i"
Line 20: Line 21:
You can also use:
Line 21: Line 23:
You can use also:
  
Line 24: Line 24:
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

You can also use “apt-get dselect-upgrade” instead of dselect

All this with a single command:

apt-get install {{{cat installed-software.log}}}

== See also ==
 * DebPkg: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].
 * [http://linux.byexamples.com/archives/161/how-to-check-what-have-installed-in-debianubuntu/ Linux by examples]
 * WikiPedia:JIG (Wikipedia article about JIG) and DebPkg:JIG (Package JIG)
 * AptZip

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:

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"

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

You can also use “apt-get dselect-upgrade” instead of dselect

All this with a single command:

apt-get install cat installed-software.log

See also


CategoryPackageManagement