In ubuntu, I did these commands:

sudo apt-get install build-essential vala-desktop-agnostic checkinstall
sudo apt-get build-dep avant-window-navigator

How can i un-apt-get, or uninstall the packages it pulls in?


First your remove the packages with remove or purge

sudo apt-get purge build-essential vala-desktop-agnostic checkinstall
sudo apt-get purge ....

Then you remove now unneeded dependencies

sudo apt-get autoremove

In the case of build-dep you will have to figure out manually which packages are build-dependencies of avant-window-manager. Synaptic will tell you that.


apt-get remove should do the trick, apt-get purge if you want to dump the config files as well.

  • 1
    Also, "apt-get autoremove" to remove packages that was installed as a dependency, but uninstalled everything that depends on it.
    – petersohn
    May 21 '10 at 6:51
  • apt-get --purge remove packagename
    – Apache
    May 21 '10 at 6:54
  • yeah, but if you apt-get remove it'll tell you about autoremove ;)
    – Journeyman Geek
    May 21 '10 at 7:31

The first step will remove the installed packages:

sudo apt-get purge build-essential vala-desktop-agnostic checkinstall

The second step will search for the build-deps and mark them as automatically installed, and hence removable:

sudo aptitude markauto $(apt-cache showsrc PACKAGE_NAME | sed -e '/Build-Depends/!d;s/Build-Depends: \|,\|([^)]*),*\|\[[^]]*\]//g')

You may or may not then need the third step:

sudo apt-get --purge autoremove

Ref: http://www.webupd8.org/2010/10/undo-apt-get-build-dep-remove-build.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.