Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 13 down vote accepted

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.

share|improve this answer

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

share|improve this answer
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 – Shiki 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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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