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.

~ by Dante Regis on June 4, 2007.

4 Responses to “apt-get and dpkg log – undo changes”

  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. Perfect! I run in the same situation like you, but this must help!😉
    Thanks!

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

  4. I should have read that before wasting time on a script to write a log of installs/deinstalls… Thanks! =)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: