Getting list of installed packages for later re-installation

Alexander Skwar listen at alexander.skwar.name
Tue Jul 4 19:10:41 UTC 2006


Kristian Rink schrieb:

> I'm not sure whether this is the way to go, but it worked out very well
> quite often for me (both running Debian and ubuntu):
> 
> (a) create your package list this way:
> 
> dpkg --get-selections > packages.list
> 
> 
> ... work ...
> 
> (b) reinstalled: replay your package list into the empty system:
> 
> dpkg --set-selections < packages.list
> 
> 
> (c) enter "dselect", choose" option "install", hope for the best. :)
> 
> 
> Hmmm, hope this was the way it should be done, it's been quite a while.
> Good luck to you, feel free to ask if you need additional help. :)

You shouldn't have said this :)

What you wrote worked quite fine, but I'm demanding. To test
what you wrote, I modified packages.list and changed one
unimportant package (myspell-de-at) from "Deinstall" to "Install".
When I select "Install", I get this:

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Die folgenden NEUEN Pakete werden installiert:
   myspell-de-at
Die folgenden Pakete werden aktualisiert:
   linux-headers-2.6.15-25 linux-headers-2.6.15-25-686 linux-image-2.6.15-25-686 xserver-xorg-input-mouse
4 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 22,5MB von 30,2MB Archiven geholt werden.
Nach dem Auspacken werden 299kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? n
Abbruch.

This means, that it suggests to INSTALL the new package myspell-de-at (fine!)
and UPDATE the linux-headers, ... packages.

That's NOT what I want. I want to ONLY install myspell-de-at. How
would I do that (besides running "apt-get install myspell-de-at",
of course *G*).

Or does it not make sense what I wrote/want and I've got to upgrade
those packages as well? But I'd rather not do this - I just want to
install myspell-de-at, as that's the only difference in the packages.list.

How to go on?

Thanks,

Alexander Skwar
-- 
Vaterland nennt der Staat immer dann, wenn er sich anschickt, auf
Menschenmord auszugehen.
                 -- Friedrich Dürrenmatt (Romulus der Große)




More information about the ubuntu-users mailing list