From owner-freebsd-stable@FreeBSD.ORG Tue May 17 19:45:52 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDBE016A538 for ; Tue, 17 May 2005 19:45:49 +0000 (GMT) Received: from mail13.syd.optusnet.com.au (mail13.syd.optusnet.com.au [211.29.132.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF50143D8E for ; Tue, 17 May 2005 19:45:48 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j4HJjb7Z016749 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 18 May 2005 05:45:37 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j4HJjbRx001563; Wed, 18 May 2005 05:45:37 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)j4HJjWO4001562; Wed, 18 May 2005 05:45:32 +1000 (EST) (envelope-from pjeremy) Date: Wed, 18 May 2005 05:45:32 +1000 From: Peter Jeremy To: Graham Menhennitt Message-ID: <20050517194532.GB1511@cirb503493.alcatel.com.au> References: <20050517115356.GA15638@kierun.org> <4289E139.3070200@optusnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4289E139.3070200@optusnet.com.au> User-Agent: Mutt/1.4.2i cc: freebsd-stable@freebsd.org Subject: Re: pkg question... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 19:45:52 -0000 On Tue, 2005-May-17 22:19:05 +1000, Graham Menhennitt wrote: >Yann Golanski wrote: > >>Is there a way to remove a package and the dependencies that only said >>package uses? >> >> >ports -> sysutils/pkg_rmleaves That is an interactive script that lets you delete all packages that aren't required by other packages. You still need some way to work out what dependencies were installed by the first package. You could try looking at "pkg_deinstall -R" (part of portupgrade). BTW, if you compiled the package, it could have installed build-time dependencies that aren't recorded as requirements and I don't know any easy way to find/delete them. -- Peter Jeremy