From owner-freebsd-questions@FreeBSD.ORG Sat Jan 25 10:32:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F8B7C33 for ; Sat, 25 Jan 2014 10:32:11 +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 D47D91473 for ; Sat, 25 Jan 2014 10:32:10 +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 s0PAVnhG036915 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 25 Jan 2014 10:32:06 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s0PAVnhG036915 Authentication-Results: smtp.infracaninophile.co.uk/s0PAVnhG036915; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <52E39294.3010106@FreeBSD.org> Date: Sat, 25 Jan 2014 10:31:48 +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> In-Reply-To: <52E38EB5.3080604@gmail.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LXjwnn8lXXJgAcDI5rx1BFkNDBqkn3FjF" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DCC_CHECK 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 10:32:11 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LXjwnn8lXXJgAcDI5rx1BFkNDBqkn3FjF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 25/01/2014 10:15, James Griffin wrote: > Hi >=20 > 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. >=20 > 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. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --LXjwnn8lXXJgAcDI5rx1BFkNDBqkn3FjF 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/ iQJ8BAEBCgBmBQJS45KVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATQkAP/3xrYNrnFexu3SCoKv49lG+n 4wqyYaI7wfq1sm5TYkAqwsWx1f5waBRLid/hpi6MeY3PYXA9TRr+OmWAgk8EPNX8 KwtqSAJNiwVgHJYAqNfcPqjDNcNCPAjzA6ZNXPj8KmM92oNWikzzD6azgf5ezlTj YuL5avntCpHcY1b43OhtqmqRQw1ydVl8NxXHRe2LxrrI21wdgWkXZ7rGjIQuQ1GY 4T5zZeIr0gwxkXD7QTuYv05Iby1bUOcW2g87+dUU7cksxHc3Y7US72zIQivrW5rk Y2opPAdO/ZMkxiO9Oo+rLeI0U4MjMpsoUAEHP9lgCZrO+bQsXsBkZJxgbJyqEy1R 4h81BhA8b6ByeRon4+94ej6V/3QfkS1X4ZkNqZUHvzT0ynd9dcxy6Z5VYxBJnCya 1EgMiQwDHieyIUXV7peOKbYw5QayqAsqULNCzWWLhP/3qGB7BeJimwU3W7LIgoQ0 3xKDFu/Gk3eKqPAY+PpmnMi6f4qRsUisqvquhjqnP2UnhMzosaezabsUnQiYPRyA tB3rBPUZ70tA09oQ/59owG946Ze9A0BAx0gXRjLJBAw00abOu2pFUhtDqwNFfci8 1LWRjrab5W4n0Ljt+U2Fa+VnG1+NqhOZTzU/VoQ581PfbKMyj5IAosrGyt+7aeyp 4vF4txb+lfEIEqXHTPSd =q9A/ -----END PGP SIGNATURE----- --LXjwnn8lXXJgAcDI5rx1BFkNDBqkn3FjF--