pkg command to remove multiple packages
jmzgriffin at gmail.com
Sat Jan 25 15:51:10 UTC 2014
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
> > with the disk space.
> > I guess that command won't find a few bits like thunar and some
> 'pkg deinstall -R pkgname' deletes pkgname and everything that
> 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
> portmaster / portupgrade or similar, it should try and remove any
> dependencies[*] too, which may or may not be what you want. Also,
> won't remove a package if something else has subsequently been
> that also requires it.
> [*] 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?
More information about the freebsd-questions