[ubuntu-uk] 64 bit lucid install

Neil Greenwood neil.greenwood.lug at gmail.com
Tue Apr 27 10:33:39 BST 2010


On 26 April 2010 15:08, Markie <mark.curtis.1970 at googlemail.com> wrote:
>[snip]
> You can backup and re-instate your previous apps via command line;
>
> To backup
>
> Code:
>
> sudo dpkg –get-selections > myPackages
>
> To re-instate
>
> Code:
>
> sudo dpkg –set-selections < myPackages && sudo apt-get dselect-upgrade
>
> You can also do it through synaptic


There's one small problem with this technique as you've written it -
it loses track of all the automatically installed dependencies and
marks everything as explicitly installed. This means that dependencies
aren't automatically removed when you remove the last package that
uses them.


There is an alternative to the first command that will only output the
packages you've explicitly selected though.

Code:

sudo aptitude search '~i !~M' -F '%p install' > myPackages

You also might need a 'apt-get update' just before running 'apt-get
dselect-upgrade'. You definitely should run an update before
installing the packages anyway (whether it's before or after the
set-selections).

Reference: http://blog.hanno-stock.de/archives/50

This also includes commands to update the automatically installed
packages if you used the commands originally posted!


HTH,
Neil.



More information about the ubuntu-uk mailing list