Synaptic 'rollback' function?

Christoph Bier christoph.bier at web.de
Mon May 8 21:56:13 UTC 2006


Toby Kelsey schrieb am 08.05.2006 22:05:

>>>>>Or in other words, would it be possible to set/save the current state of
>>>>>all installed packages,
>>>>
>>>>dpkg --get-selections > my-selections.txt

>>>>>and then roll back to that savepoint?
>>>>
>>>>dpkg --set-selections < my-selections.txt
>>>>apt-get dselect-upgrade
> 
> I just tried an experiment to see what happens:

Thanks for your investigation!

> root:~ # dpkg --get-selections > set1
> root:~ # wc -l set1
> 1721 set1
> 
> Now after I install gnome-pim (from Universe) with Synaptic.
> 
> root:~ # dpkg --get-selections > set2
> root:~ # diff set1 set2
> 311a312
> 
>>gnome-pim                                     install
> 
> 
> So far so good. Now to rollback:
> 
> root:~ # dpkg --set-selections < set1
> root:~ # apt-get dselect-upgrade
> Reading package lists... Done
> Building dependency tree... Done
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> root:~ # dpkg --get-selections > set3
> root:~ # diff set2 set3
> 
> Oops, no effect. [...]

You're right, I made a grave mistake. Please try it again with

	dpkg --get-selections "*" > set1

Best,
  Christoph
-- 
+++ Typografie-Regeln: http://www.zvisionwelt.de/typokurz.pdf (1.4)





More information about the ubuntu-users mailing list