From owner-freebsd-questions@FreeBSD.ORG Sat Jan 25 15:51:10 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A4F113F for ; Sat, 25 Jan 2014 15:51:10 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 021EF1B48 for ; Sat, 25 Jan 2014 15:51:09 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id z12so4007614wgg.18 for ; Sat, 25 Jan 2014 07:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:content-type; bh=MMrcp7saotCWcNmU9v5yrU/B3jKXyx3hLzNU3pir/LY=; b=RXqSTbdhSQSQAdWNLqoPkse4Aj9AafWA1IbIpfbLo3OUIcTgEjEsAUMv7FUeenAyqU f4QqNS7/eqcpbd4HsJvKFVO6CGNYT0rKA619u4WruL5fCDQsxhBDDZigwt99eE+OY8aa d+bepV1HDYZA4eV6XlmMF7iN0RSMHclQyBEjTp5Ypj4W1vOYg8Rubyc6PrAwDQ1C7GDM tTE6LZ1IrYZmc/h9jscQt7ePNJIeIxL28Lv7b0siCxUqgnrEG+uXKUsRO8dLLGhwlUZz WCyQKZtqRtxnlSbQjmL0BtZZks3/BgTRpEfknia/KEAjK0avdFjkPDc76NEVRes1ZGFU f18A== X-Received: by 10.180.104.72 with SMTP id gc8mr6737494wib.5.1390665068530; Sat, 25 Jan 2014 07:51:08 -0800 (PST) Received: from kontrol.kode5.net (kontrol.kode5.net. [80.229.5.32]) by mx.google.com with ESMTPSA id gd5sm15270757wic.0.2014.01.25.07.51.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Jan 2014 07:51:07 -0800 (PST) From: James Griffin To: freebsd-questions@freebsd.org Subject: Re: pkg command to remove multiple packages Date: Sat, 25 Jan 2014 15:51:05 +0000 Message-ID: <1481503.WyXhS8WgeP@kontrol.kode5.net> User-Agent: KMail/4.10.5 (FreeBSD/10.0-RELEASE; KDE/4.10.5; amd64; ; ) In-Reply-To: <52E39294.3010106@FreeBSD.org> References: <52E38EB5.3080604@gmail.com> <52E39294.3010106@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 15:51:10 -0000 On Saturday 25 January 2014 10:31:48 Matthew Seaman wrote: > On 25/01/2014 10:15, James Griffin wrote: > > Hi > > > > With this new pkgng thing, if I use 'pkg delete -R -x xfce' will it > > remove all the stuff related to the xfce4 installation. I had to use > > ports to build xfce4 because there wasn't a meta-pkg to install (at > > least not that I could find), but i'm using kde4 now instead. Could do > > with the disk space. > > > > I guess that command won't find a few bits like thunar and some libs. > > 'pkg deinstall -R pkgname' deletes pkgname and everything that requires > pkgname, which is 90% of what you need. > > The remaining 10% can be cleaned up by: > > pkg autoremove > > This deletes packages that were installed solely to fulfill the > dependencies of pkgname -- if you're building your packages locally with > portmaster / portupgrade or similar, it should try and remove any build > dependencies[*] too, which may or may not be what you want. Also, it > won't remove a package if something else has subsequently been installed > that also requires it. > > Cheers, > > Matthew > > [*] pkg(8) only ever considers run-time dependencies. Are you sure 'pkg deinstall ...' is right? I don't see deinstall as an available argument to use. Am I missing something here?