From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 02:27:21 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EF7816A4D1 for ; Tue, 1 Feb 2005 02:27:21 +0000 (GMT) Received: from out011.verizon.net (out011pub.verizon.net [206.46.170.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A54643D2D for ; Tue, 1 Feb 2005 02:27:20 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out011.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050201022719.EJAH4717.out011.verizon.net@ringworm.mechee.com>; Mon, 31 Jan 2005 20:27:19 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id E83DC2CE741; Mon, 31 Jan 2005 18:23:01 -0800 (PST) From: "Michael C. Shultz" To: freebsd-questions@freebsd.org Date: Mon, 31 Jan 2005 18:22:58 -0800 User-Agent: KMail/1.7.1 References: <200502010216.j112Gwll028376@smtp4.server.rpi.edu> In-Reply-To: <200502010216.j112Gwll028376@smtp4.server.rpi.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501311822.59155.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out011.verizon.net from [4.26.84.7] at Mon, 31 Jan 2005 20:27:19 -0600 cc: Matt LaPlante Subject: Re: Cleaning Out Ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 02:27:21 -0000 On Monday 31 January 2005 06:16 pm, Matt LaPlante wrote: > Well what I'm more concerned with is how would you locate orphaned > dependencies after the fact. For a parallel example, in gentoo you > would "emerge --depclean" which searches the tree for any orphaned > packages and removes them. So say I hadn't used the -r flag when > removing packages on BSD, how could I find the leftovers later? > Look at /usr/ports/sysutils/pkg_cutleaves here is a excerpt from its man page: "pkg_cutleaves finds installed 'leaf' packages, i.e. packages that are not referenced by any other installed package, and lets you decide for each one if you want to keep or deinstall it (via pkg_deinstall(1)). Once the packages marked for removal have been flushed/deinstalled, you'll be asked if you want to do another run (to see packages that have become 'leaves' now because you've deinstalled the package(s) that depended on them). In every run you will be shown only packages that you haven't marked for keeping, yet." > -- > Matt LaPlante > System Administrator > Center for Automation Technologies > RPI/CAT, CII 8015 > 110 8th Street > Troy, NY 12180 > Phone: (518) 276-2275 > laplante@cat.rpi.edu > www.cat.rpi.edu > > > -----Original Message----- > > From: Pat Maddox [mailto:pergesu@gmail.com] > > Sent: Monday, January 31, 2005 8:55 PM > > To: Matt LaPlante > > Cc: freebsd-questions@freebsd.org > > Subject: Re: Cleaning Out Ports? > > > > If you try to remove a package that has child dependencies, then > > it'll let you know. You'll have to use the -f flag to force it to > > delete the package, despite there being any dependencies. If you > > want to delete a package along with all its dependencies, you can > > use the -r flag. > > > > Use pkgdb -F to fix any dependencies that might be broken. > > > > I think that's about right. I'm a FreeBSD newbie :) > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"