Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 18:44:56 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg command to remove multiple packages
Message-ID:  <52E40628.2050505@infracaninophile.co.uk>
In-Reply-To: <1481503.WyXhS8WgeP@kontrol.kode5.net>
References:  <52E38EB5.3080604@gmail.com> <52E39294.3010106@FreeBSD.org> <1481503.WyXhS8WgeP@kontrol.kode5.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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 
> 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?

Err -- no.  It's 'pkg delete'  --- "pkg deinstall" is just something my
fingers want to produce in defiance of my brain.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


[-- Attachment #2 --]
-----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-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52E40628.2050505>