From owner-freebsd-questions@FreeBSD.ORG Sat Jan 25 18:45:14 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 9702722D for ; Sat, 25 Jan 2014 18:45:14 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3D2C81898 for ; Sat, 25 Jan 2014 18:45:14 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id s0PIj7Uk045288 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 25 Jan 2014 18:45:08 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s0PIj7Uk045288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1390675508; bh=l9m3Xt2UsW53AVBonVyJ5D+NAbi2Wt42fce/FompFYo=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2025=20Jan=202014=2018:44:56=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20pkg=20command=20to=20remove=20mul tiple=20packages|References:=20<52E38EB5.3080604@gmail.com>=20<52E 39294.3010106@FreeBSD.org>=20<1481503.WyXhS8WgeP@kontrol.kode5.net >|In-Reply-To:=20<1481503.WyXhS8WgeP@kontrol.kode5.net>; b=yjphS6YCBkq8io8xez9IFBbdEqDW2B2pOSIvCy8Km3P4ANoCzOkLhqtTgWx1mJj6C 3mt5kcPWRlbn+1B6G6XfPD7c3wXAndo2u3+P1WFWwj+cnLQodRKTsoihhiYVy4XxdH dwmppFvagXApMZh0BctKAW62eqZ9eTRceoDA8wHk= Message-ID: <52E40628.2050505@infracaninophile.co.uk> Date: Sat, 25 Jan 2014 18:44:56 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkg command to remove multiple packages References: <52E38EB5.3080604@gmail.com> <52E39294.3010106@FreeBSD.org> <1481503.WyXhS8WgeP@kontrol.kode5.net> In-Reply-To: <1481503.WyXhS8WgeP@kontrol.kode5.net> X-Enigmail-Version: 1.6 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ueGKAOtEq22HjRDTTRk60he2nraj3QFD9" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DCC_CHECK,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk 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 18:45:14 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ueGKAOtEq22HjRDTTRk60he2nraj3QFD9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 25/01/2014 15:51, James Griffin wrote: > 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=20 > do >>> with the disk space. >>> >>> I guess that command won't find a few bits like thunar and some=20 > libs. >> >> 'pkg deinstall -R pkgname' deletes pkgname and everything that=20 > 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=20 > with >> portmaster / portupgrade or similar, it should try and remove any=20 > build >> dependencies[*] too, which may or may not be what you want. Also,=20 > it >> won't remove a package if something else has subsequently been=20 > installed >> that also requires it. >> >> Cheers, >> >> Matthew >> >> [*] pkg(8) only ever considers run-time dependencies. >=20 > Are you sure 'pkg deinstall ...' is right? I don't see deinstall as an = > available argument to use. Am I missing something here? Err -- no. It's 'pkg delete' --- "pkg deinstall" is just something my fingers want to produce in defiance of my brain. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --ueGKAOtEq22HjRDTTRk60he2nraj3QFD9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJS5AYyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT8sIQAJXayXZQL7RPN55DPAkSlsdE 0NqUqgXMFWR1pU7j5ORotoEWjQUQ0hVfH/yE8dGTkCwMi3CJitWmpO70OyARBdsC ewIsCAPgomrrRCJBIrQ/qfIIB2vxvayQU9BNqq6BEJF4gXqXLbER8odnjqU9fomI mACdJ0+2Wdf6Uol6oy1H0XhBaWiy11I615G8GsNbouDKp3iSmY2HLmxyXJSQ7f6y sqlkFpnDtGnuYNd0HN0F+6gFqiyonU8JgNoVuImLrKtHYb+WqRT1jWKdINGPT9bD HmFXs0ewVaPxrYGnHmyspAT+AxlxofltPSd1fbEgXD+GCMhc0SXo9FtwgMB9uHP2 T3WhsT3M22a0bKTeARycvXKoHN4yTf2KHjwS7o2esyXM2ljrbjnI/QNYRspn8VSY JObzwkhQTiVb27D1ehkethLDykMuXbnXwNKeYNfWS/KNw4nOmBTsvU77Po4AjOEY pb87D/pq1E11V+H9JVPswYyl0MGcOAPhXFewU4lNRAVM2tldTGXoTMBKs4Cn0O0W mHUgFlwTgiMkN1fOXToT1Es6PQAAIiiW87hQ34Lux6Q21PyS8MJsryzv9A4xt582 lH7J7OXdfkDM/s+l2+3b/ub87zTuqD3zDLyPezdegpm6LKlLKF7bKIOjevs9nyJA wWYJuwhDw/9ZsJySvifW =zt39 -----END PGP SIGNATURE----- --ueGKAOtEq22HjRDTTRk60he2nraj3QFD9--