Ubuntu – Cancelling/Undo apt-get commands


My friend suggested that I upgrade my ubuntu 12.04 to 13.04

I used these commands in a terminal :

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove

Then I think my 12.04 doesn't have a problem and is stable, and is supported until 2017.

So, how would I cancel the command.

Best Answer

apt-get update only updates your repos.

apt-get dist-upgrade updates your packages with smart conflict resolution, but will not update your distro to 13.04.

apt-get autoremove will remove any packages that are not needed by the system anymore, such as dependencies which are no longer required.

So in short the commands will update your system with the latest packages for your distro (Ubuntu 12.04) and clean up and remove any unnecessary packages.