In synaptic, I can generate a package download script that will download all the packages to a new clean install of ubuntu.

I was wondering if it was possible to generate the package download script with packages that were installed by the user (i.e. packages that are not included with the base ubuntu install)?

asked 16 May '10, 11:59

Troy's gravatar image

accept rate: 100%

Please accept an answer, or provide more details on what you're looking for.

(14 Jun '11, 11:43) rfelsburg ♦


i can only think of the following:

dpkg --get-selections >installed-software.txt 

which stores all selected packages in installed-software.txt

so if you have a new and clean install you could use diff to find the packages that the user installed.


answered 17 May '10, 06:04

mindspring's gravatar image

accept rate: 100%

You can use this command to generate a nicer output: dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}' > packages.list

(17 May '10, 12:02) guerda
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 16 May '10, 11:59

Seen: 4,410 times

Last updated: 14 Jun '11, 11:43

powered by OSQA