July 27, 2011 · Package Mgmt · Email This Post

From the author

This script can only work if you use this script instead of apt-get to install/upgrade/remove/purge/downgrade your packages.

Install Apt-undo on ubuntu

Open the terminal and run the following commands

sudo add-apt-repository ppa:lkjoel/apt-undo

sudo apt-get update

sudo apt-get install apt-undo

Usage examples

apt-undo install yourpackages

apt-undo remove yourpackages

apt-undo purge yourpackages

apt-undo upgrade

apt-undo dist-upgrade

apt-undo install yourpackages=old.version

apt-undo install yourpackages=new.version

To undo:

apt-undo undo
# Or
apt-undo undo $HOME/.aptundo/year/month/date/yearmonthdatehourminutesseconds
# Or
bash $HOME/.aptundo/year/month/date/yearmonthdatehourminutesseconds

Via lkubuntu

Sponsored Link

Incoming search terms:

Related posts

1 Comment to “Apt-Undo – A simple way of undoing Apt actions”

  1. fict10n says:

    apt-get is obsolete.

    Try aptitude and Synaptic instead.

    sudo aptitude update
    sudo aptitude install package_name
    sudo aptitude remove package_name

    [Reply]

Leave a Reply