Feedback

type to search

Delete build-depends package

Asked by [ Editor ]

Example: get dev-packages for transmission:

# aptitude build-dep transmission
How can I to delete all this dev-package?

or Cancel

2 answers

3

wes.frazier [ Editor ]

Supposedly this works, although i’ve never been in that situation:

sudo aptitude markauto $(apt-cache showsrc PACKAGE_NAME | grep Build-Depends | perl -p -e ’s/(?:[[(].+?[])]|Build-Depends:|,|\|)//g')


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

NN comments
wes.frazier
-
BTW if it worked, please don’t forget to mark the answer to close the question.

or Cancel
0

tornow [ Editor ]

I think you can also use deborphan.
$ deborphan
or
$ deborphan —guess-dev
and if the result looks like what you want:
# deborphan —guess-dev | xargs apt-get remove —purge -y

take care

NN comments
paulcarroty
-

good variant for full system

or Cancel

Your answer

You need to join Debian to complete this action, click here to do so.