Synaptic 'rollback' function?

Toby Kelsey toby_kelsey at ntlworld.com
Tue May 9 17:05:17 UTC 2006


Adam Conrad wrote:
> Try a "dselect update" before this first --get-selections invocation.

OK, running
  dselect update
  dpkg --get-selections "*" > set1
  apt-get install tuxmath
  dpkg --get-selections "*" > set1
then
  diff set1 set2
gives:

981c981
< libsdl-image1.2                                       deinstall
---
> libsdl-image1.2                                       install
1596c1596
< tuxmath                                               deinstall
---
> tuxmath                                               install

then

  dpkg --set-selections < set1
  apt-get dselect-upgrade

removes libsdl-image1.2 and tuxmath, and

  dpkg --get-selections "*" > set3
  diff set1 set3

shows no difference, so the rollback took the packages back to where we started.
I would still prefer something which tracked package versions though, so you
could get back to a "known good" state after a bad update.

Toby




More information about the ubuntu-users mailing list