PDA

View Full Version : [ubuntu] How to generate a list of all installed software/packages?



Physicist
July 2nd, 2008, 12:40 AM
How to generate a list of all installed software?

How to generate a list of all installed packages?

Alan Coleman
July 2nd, 2008, 12:55 AM
* The Debian menuInstall the Debian menu. The Debian menu has a much more thorough list of your installed applications, and it will be available as a category in your existing Applications menu. You need to install the package called menu-xdg and possibly restart X (ctrl + alt + backspace) for it to show up.


Hope this helps.
found it in the absolute beginers thread.
it should be more public knowlage.

hope you find what youve lost.

sdennie
July 2nd, 2008, 01:23 AM
To see all the packages installed you can use:



dpkg -l | grep "^ii"


You may want to redirect that to a file because it's going to be a lot of packages:



dpkg -l | grep "^ii" > packages.txt

iaculallad
July 2nd, 2008, 01:29 AM
The terminal command you need list all currently installed packages is dpkg –get-selections.


dpkg --get-selections

To pipe the output to a file:


dpkg --get-selections > Installed_Packages.log

blackhawx
July 1st, 2010, 04:14 AM
The terminal command you need list all currently installed packages is dpkg –get-selections.


dpkg --get-selectionsTo pipe the output to a file:


dpkg --get-selections > Installed_Packages.log


but how does it now where to save that outputted file too? will it just pop up after running that command?

blackhawx
July 1st, 2010, 04:29 AM
To see all the packages installed you can use:



dpkg -l | grep "^ii"
You may want to redirect that to a file because it's going to be a lot of packages:



dpkg -l | grep "^ii" > packages.txt



thank you!!!

jocko
July 1st, 2010, 06:38 AM
but how does it now where to save that outputted file too? will it just pop up after running that command?
The file will be saved wherever you tell it to.
To be sure where it ends up, use the full path and not just the file name, so to get it in your home directory:

dpkg --get-selections > /home/username/Installed_Packages.log

If you don't include the path in the command, it will be saved in whichever folder you are currently in. A terminal always opens in your home directory, so unless you cd away from there that's where the file will end up.

veko
July 1st, 2010, 07:26 AM
If you want to list all the packages in order to install them again (after fresh upgrade, or when cloning install to another computer), here's a handy trick. This is directly from dpkg man pages:



To make a local copy of the package selection states:
dpkg --get-selections >myselections

You might transfer this file to another computer, and install it there
with:
dpkg --clear-selections
dpkg --set-selections <myselections

Note that this will not actually install or remove anything, but just set
the selection state on the requested packages. You will need some other
application to actually download and install the requested packages. For
example, run apt-get dselect-upgrade.
So with:


dpkg –get-selections > mypackages.txt
sudo dpkg –set-selections < mypackages.txt
sudo apt-get dselect-upgrade
you should be able to copy and replicate your setup.