Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

To install the build dependencies of some software, we use command

$ sudo apt-get build-dep XXXX

What to do in case we want to remove those packages only, those dependency packages installed by build-dep?

share|improve this question

1 Answer 1

In order to find a package dependecies you can use apt-rdepends, to install run:

sudo apt-get install apt-rdepends

How to use: sudo apt-rdepends [options] [pkgs ...]

For example: apt-rdepends bash will print a list like this:

bash
  Depends: base-files (>= 2.1.12)
  Depends: debianutils (>= 2.15)
  PreDepends: dash (>= 0.5.5.1-2.2)
  PreDepends: libc6 (>= 2.15)
  PreDepends: libtinfo5
base-files
  PreDepends: awk
awk
debianutils
  Depends: sensible-utils
  PreDepends: libc6 (>= 2.15)
  ...

you can find these dependencies with apt-rdepends and then remove them by:

sudo apt-get remove --purge [PACKAGE_NAME]

share|improve this answer
    
but I want to uninstall them, the files I downloaded for building the dependency of the package, say vlc –  shivshnkr Apr 5 '13 at 7:32
    
will i have to remove all files one by one? Any utility for removing them at once? –  shivshnkr Apr 5 '13 at 7:55

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.