pkg command to remove multiple packages
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sat Jan 25 18:45:14 UTC 2014
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 at infracaninophile.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140125/c164cd49/attachment.sig>
More information about the freebsd-questions
mailing list