From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 02:13:01 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 114AA16A4B3 for ; Wed, 22 Oct 2003 02:13:01 -0700 (PDT) Received: from mail4.bluewin.ch (mail4.bluewin.ch [195.186.4.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57AB843F85 for ; Wed, 22 Oct 2003 02:12:59 -0700 (PDT) (envelope-from raphael@computer-rental.ch) Received: from computer-rental.ch (81.62.193.102) by mail4.bluewin.ch (Bluewin AG 7.0.020) id 3F8C00BC00103972; Wed, 22 Oct 2003 09:12:49 +0000 Date: Wed, 22 Oct 2003 11:07:28 +0200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: Ruben de Groot From: =?ISO-8859-1?Q?Rapha=EBl_Marmier?= In-Reply-To: <20031022084334.GA41835@ei.bzerk.org> Message-Id: <2942C0CA-046F-11D8-80A5-000393D67E4A@computer-rental.ch> Content-Transfer-Encoding: quoted-printable X-Mailer: Apple Mail (2.552) cc: Chris Richards 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 09:13:01 -0000 first make sure the pkgdb is ok and in sync with the port tree with=20 pkgdb -F. I use pkg_deinstall (comes with portupgrade) to do that kind of thing. Use option -R and -r to sweep up and down in the depency tree with the=20= -c option that checks wether a package's files have been overwritten by=20= another's. In that case, it aborts. You can then investigate, deinstall=20= the cuprit, continue, then maybe after that reinstall it. Most=20 important, always use -n and maybe -v to know what will happen without=20= actually touching anything. This is the most powerfull way I know to _really_ clean things without=20= breaking things, as it is always a possible a package overwrote=20 another's files. Ports, correctedness and stability made me switch over=20= from linux, portupgrade and pkg_deinstall make me stay. Rapha=EBl Le Mercredi, 22 oct 2003, =E0 10:43 Europe/Zurich, Ruben de Groot a = =E9crit=20 : > 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=20= >> was >> seeing which one I like best - now I have decided I want to keep=20 >> gallery >> and uninstall imageindex. >> >> What is the cleanest way to do this? I have noticed that they both=20 >> 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=20 > 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=20 >> "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to=20 > "freebsd-questions-unsubscribe@freebsd.org"