From owner-freebsd-questions@FreeBSD.ORG Sat Apr 22 20:21:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 ACC0F16A402 for ; Sat, 22 Apr 2006 20:21:50 +0000 (UTC) (envelope-from savagehrt@tconl.com) Received: from tconl.com (mail.tconl.com [204.26.80.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14A1343D46 for ; Sat, 22 Apr 2006 20:21:49 +0000 (GMT) (envelope-from savagehrt@tconl.com) Received: from [192.168.100.100] ([10.62.23.237]) by tconl.com (8.12.11/8.12.11) with ESMTP id k3MKLkdC032011 for ; Sat, 22 Apr 2006 15:21:46 -0500 Message-ID: <444A9068.3080200@tconl.com> Date: Sat, 22 Apr 2006 15:22:00 -0500 From: Drew User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1145733751.29291.259685008@webmail.messagingengine.com> In-Reply-To: <1145733751.29291.259685008@webmail.messagingengine.com> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=2AB6BA45 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Qwest-MailScanner-Information: Virus scanner provided by Qwest. Please visit tconl.com for more information. X-Qwest-MailScanner: Found to be clean X-MailScanner-From: savagehrt@tconl.com Subject: Re: How do uninstall a package and all it's dependencies ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 20:21:51 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick Bowen wrote: > Low Kian Seong wrote: > >> The problem about the -R option is that normally that takes off stuff >> like xorg-server and friends too ! Really not nice, or am I doing >> something wrong ? >> >> On 4/20/06, *Patrick Bowen* > > wrote: >> >> Low Kian Seong wrote: >> >> >Dear all, >> > >> >Been digging around but never really found the answer to this >> one, say if i >> >install xfce4 package and then later I want to uninstall xfce4 >> and *all* >> >it's dependencies, how do i do it ? >> > >> >Thank you all in advance. >> >_______________________________________________ >> >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 >> " >> > >> > >> > >> >> Seong; >> >> I do that fairly often when I'm just looking at packages. Try >> "pkg_deinstall -R package-name", where package-name is replaced >> with the >> name of the package you want to delete, in your case xfce4. >> >> pkg_deinstall -R xfce4. >> >> Patrick >> _______________________________________________ >> 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 >> " >> >> > > If the dependancy pkg is required by something else, then pkg_deinstall > will tell me that it can't delete the dependancy pkg because its used by > another pkg. Works like a charm. > > Patrick > I use a program called pkg_cutleaves. It's located in /usr/ports/sysutils/pkg_cutleaves. You run it as root and basically you select the main program(s) you want to deinstall. If the program you deinstall has any dependencies it will give you the option to deinstall them as well. Hope this helps. Drew -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3rc2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBREqQZ3Q3fmUuGnJBAQLf/wgAkrAaYHw96kkt6UQvVyNW1ZZdLeuA5pCU OPwqHTbwlXov0HXilYyCRl/oExbOGsrvP0zoOdVzNV4Np7z8+LeFGhecDP9U080X CA8oWkQO3vKZaN5sl9sHCij0AkwTs0jBDbmdF/Ao77xncoYu6laW1Lvw7Ewa7YwD PMOuePuOU6LhTph7NgRI8bLpJOhcvwqFRyF5z2DxWYT89mPvuhh6Qo18aWKIwDda Hk3SMIU+spIo80DUPagao2xE79uo5QhaVGTzUlwhY+gxPBhGmZCT3FZQVxFhJ+es uMFbri7SkqugZlrvXu0wPOVvID0d/FEHWfUvHFFJ4AHrcgqZPrNbsA== =OJju -----END PGP SIGNATURE-----