Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 10:31:48 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg command to remove multiple packages
Message-ID:  <52E39294.3010106@FreeBSD.org>
In-Reply-To: <52E38EB5.3080604@gmail.com>
References:  <52E38EB5.3080604@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?52E39294.3010106>