From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 01:42:46 2003 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 3A07116A4B3 for ; Wed, 22 Oct 2003 01:42:46 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C34CF43F93 for ; Wed, 22 Oct 2003 01:42:44 -0700 (PDT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id h9M8hYHR041952; Wed, 22 Oct 2003 10:43:34 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id h9M8hYdr041951; Wed, 22 Oct 2003 10:43:34 +0200 (CEST) (envelope-from mail25@bzerk.org) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Wed, 22 Oct 2003 10:43:34 +0200 From: Ruben de Groot To: Chris Richards Message-ID: <20031022084334.GA41835@ei.bzerk.org> References: <200310212252.44544.vbraga@mail.ru> <941EC83D6E678C4CA92EE2AAE55874F78022@gir.routemaster.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <941EC83D6E678C4CA92EE2AAE55874F78022@gir.routemaster.net> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.38 cc: questions@freebsd.org Subject: Re: Best way to cleanly uninstall packages? 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: Wed, 22 Oct 2003 08:42:46 -0000 On Wed, Oct 22, 2003 at 12:55:59PM +1000, Chris Richards typed: >In-Reply-To: <200310212252.44544.vbraga@mail.ru> Please don't hijack other threads when asking a new question. > Hi Everyone, > > I have installed 2 packages which inturn installed a bunch of > dependencies... They are "imageindex-1.0.6" and "gallery-1.4.0.1" I was > seeing which one I like best - now I have decided I want to keep gallery > and uninstall imageindex. > > What is the cleanest way to do this? I have noticed that they both have > common dependencies so I can't just use the "pkg_delete -r" option - I > am sure this is a common problem and there is probably an easy way to > uninstall all dependencies for imageindex except for the ones that are > needed for gallery. If you have the portupgrade package installed (which is a good idea anyway), you can use pkg_deinstall -R, which will deinstall all packages required by the given package as well. It will fail deinstalling packages required by other packages, which is precisely what you want. pkg_delete -r imageindex-1.0.6 will recursively delete packages that depend on imageindex, not the packages required by it. -Ruben > Can anyone help me? > > Thank you, > Chris > > > _______________________________________________ > 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"