From owner-freebsd-questions@FreeBSD.ORG Sat Apr 22 19:23:13 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 CBEF216A405 for ; Sat, 22 Apr 2006 19:23:13 +0000 (UTC) (envelope-from pbowen@fastmail.fm) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5383E43D48 for ; Sat, 22 Apr 2006 19:23:12 +0000 (GMT) (envelope-from pbowen@fastmail.fm) Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 687F4D4C40F for ; Sat, 22 Apr 2006 15:23:11 -0400 (EDT) Received: from web3.messagingengine.com ([10.202.2.212]) by frontend2.internal (MEProxy); Sat, 22 Apr 2006 15:22:32 -0400 Received: by web3.messagingengine.com (Postfix, from userid 99) id 05D4443AB; Sat, 22 Apr 2006 15:22:32 -0400 (EDT) Message-Id: <1145733751.29291.259685008@webmail.messagingengine.com> X-Sasl-Enc: N4+SYf+Xmyns7iskoif5DdyZ7+fzBmgIIvSiJlARZOFh 1145733751 From: "Patrick Bowen" To: freebsd-questions@freebsd.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 5022 (F2.72; T1.15; A1.62; B3.04; Q3.03) Date: Sat, 22 Apr 2006 14:22:31 -0500 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 19:23:13 -0000 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 -- Patrick Bowen pbowen@fastmail.fm