On Wed, Nov 22, 2006 at 01:33:08PM +0800, Deephay wrote: > Greetings all, > > Since I have to add a missed configure option in the debian/rules of a > package, so I used "apt-get build-dep xxx" and "apt-get source xxx" in > order to build the package, the "apt-get build-dep" installed a lot > of build-dep packages and I want to know that is there a way to purge > them? They have no further uses and seems they will not be purged > automatically. > > Thanks, Hi Deephay, Here is an UNTESTED hack I just made: apt-get remove $(apt-get --simulate build-dep xxx|grep "^Inst"|awk '{print $2}') note that it will remove all build-dep of xxx, even in you wanted to keep any. Cheers, Kev -- | .''`. == Debian GNU/Linux == | my web site: | | : :' : The Universal | debian.home.pipeline.com | | `. `' Operating System | go to counter.li.org and | | `- http://www.debian.org/ | be counted! #238656 | | my keysever: pgp.mit.edu | my NPO: cfsg.org |
Attachment:
signature.asc
Description: Digital signature