How to list all installed packages

Ivan

I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system. How would I do this?

Sabacon

Ubuntu 14.04 and above

The apt tool on Ubuntu 14.04 and above makes this very easy.

apt list --installed

Older Versions

To get a list of packages installed locally do this in your terminal:

dpkg --get-selections | grep -v deinstall

(The -v tag "inverts" grep to return non-matching lines)

To get a list of a specific package installed:

dpkg --get-selections | grep postgres

To save that list to a text file called packages on your desktop do this in your terminal:

dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

Alternatively, simply use

dpkg -l

(you don't need to run any of these commands as the superuser, so no sudo or any other variants necessary here)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to list all installed packages

From Dev

How to list all the installed packages and their version with Cabal?

From Dev

How to list all packages installed as dependencies in Terminal, and what installed them?

From Dev

List all packages installed with Guix

From Dev

list all suggested packages for currently installed packages

From Dev

list all suggested packages for currently installed packages

From Java

How to get list of all installed packages along with version in composer?

From Dev

How to list licences of all installed packages in Debian-based distros?

From Dev

How do I list all packages installed for a specific architecture?

From Dev

How do I list all packages belonging to a group (installed and uninstalled)?

From Dev

How to get installed/not installed state of **all** packages?

From Dev

How to list installed go packages

From Dev

List all packages which are loaded/defined (not installed)

From Dev

How to backup all installed software/packages on AIX?

From Dev

How to reinstall all installed packages with zypper

From Java

How to list npm user-installed packages?

From Dev

How to get the list of installed library packages only?

From Dev

How to list user installed applications (not packages)?

From Dev

How to get the list of installed library packages only?

From Dev

How to get the list of installed packages without dependencies?

From Dev

How to list user installed applications (not packages)?

From Dev

How do I list the default installed packages?

From Dev

Zypper: How to list installed packages that are not in a repo

From Dev

How to list the packages to be installed by installing a specific package?

From Dev

How to list installed packages manually from backports?

From Dev

How can I list all packages I've installed from a particular repository?

From Dev

How do I list all installed packages from the command line in bash / osX

From Dev

How can I list all packages I've installed from a particular repository?

From Dev

How can I get a list of all packages available for a specific version of Ubuntu (not necessarily the one I have installed)?

Related Related

  1. 1

    How to list all installed packages

  2. 2

    How to list all the installed packages and their version with Cabal?

  3. 3

    How to list all packages installed as dependencies in Terminal, and what installed them?

  4. 4

    List all packages installed with Guix

  5. 5

    list all suggested packages for currently installed packages

  6. 6

    list all suggested packages for currently installed packages

  7. 7

    How to get list of all installed packages along with version in composer?

  8. 8

    How to list licences of all installed packages in Debian-based distros?

  9. 9

    How do I list all packages installed for a specific architecture?

  10. 10

    How do I list all packages belonging to a group (installed and uninstalled)?

  11. 11

    How to get installed/not installed state of **all** packages?

  12. 12

    How to list installed go packages

  13. 13

    List all packages which are loaded/defined (not installed)

  14. 14

    How to backup all installed software/packages on AIX?

  15. 15

    How to reinstall all installed packages with zypper

  16. 16

    How to list npm user-installed packages?

  17. 17

    How to get the list of installed library packages only?

  18. 18

    How to list user installed applications (not packages)?

  19. 19

    How to get the list of installed library packages only?

  20. 20

    How to get the list of installed packages without dependencies?

  21. 21

    How to list user installed applications (not packages)?

  22. 22

    How do I list the default installed packages?

  23. 23

    Zypper: How to list installed packages that are not in a repo

  24. 24

    How to list the packages to be installed by installing a specific package?

  25. 25

    How to list installed packages manually from backports?

  26. 26

    How can I list all packages I've installed from a particular repository?

  27. 27

    How do I list all installed packages from the command line in bash / osX

  28. 28

    How can I list all packages I've installed from a particular repository?

  29. 29

    How can I get a list of all packages available for a specific version of Ubuntu (not necessarily the one I have installed)?

HotTag

Archive