Size: 2833
Comment: Cleanup
|
← Revision 54 as of 2019-02-24 16:24:17 ⇥
Size: 998
Comment: Redirect to AptCLI#List_installed_packages
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
##||<tablewidth="100%">~-Translation(s): -~ ||<style="TEXT-ALIGN: right"> (!) [[/Discussion]] || | ||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[fr/ListInstalledPackages|Français]] - [[it/ListInstalledPackages|Italiano]] - [[ja/ListInstalledPackages|日本語(Nihongo)]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]|| ---- |
Line 6: | Line 7: |
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. | |
Line 8: | Line 8: |
=== List all packages installed === {{{ dpkg-query -l }}} === List packages using a search pattern === It is possible to add a search pattern to list packages: {{{ dpkg-query -l 'foo*' }}} === Show status of all packages on the system === 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: {{{ apt-cache pkgnames }}} 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 the next directories (you can use DebianPkg:mc or other FileManager to browse them): * {{{/var/lib/apt/lists/*}}} * {{{/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 apt-get, [[Synaptic]] or other PackageManagement tools to install the package : {{{ apt-get dselect-upgrade }}} All this with a single command: {{{ aptitude install $(cat installed-software.log) }}} |
See [[AptCLI#List_installed_packages]] |
Line 81: | Line 11: |
Line 86: | Line 17: |
See AptCLI#List_installed_packages
See also
dpkg-query(1) manpage
debfoster - If dependency changes, debfoster ask if you want to remove the old package.
?AptZip