Home > Uncategorized > apt-get and dpkg log – undo changes

apt-get and dpkg log – undo changes

Sometimes you just run a command people on websites ask you to. Well, you actually won’t do something like “rm -Rf /”, but you will  follow some apt-gets for example. I did this today, and ended up with a system that did not play any video (the site was explaining to me how to convert FLV to AVI – I can’t do that yet). So, I messed it up. But how to undo the changes?

Fortunatelly, DPKG (wich apt-get uses under the hood) mantains a log of it’s works. It’s right there at /var/log/dpkg.log

Good lines to look at are those wich the first word after date/time is INSTALL. It says that you (or apt-get) requested to install that particular package.

I’m trying to undo my mess here!

Powered by ScribeFire.

Categories: Uncategorized Tags:
  1. Matthew
    January 4th, 2008 at 04:01 | #1

    Excellent. I’ve needed a solution like this for a while, but have been too lazy until now to look for one.

    Thanks

  2. skippy
    January 14th, 2008 at 13:58 | #2

    Perfect! I run in the same situation like you, but this must help! ;-)
    Thanks!

  3. February 11th, 2009 at 23:38 | #3

    I would also give a try to http://mavior.eu/apt-log

  1. No trackbacks yet.