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


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:

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

or Cancel

tornow [ Editor ]

I think you can also use deborphan.
$ deborphan
$ 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

good variant for full system

or Cancel

Your answer

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