Apt-Undo – A simple way of undoing Apt actions

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

You may also like...

1 Response

  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

Leave a Reply

Your email address will not be published. Required fields are marked *