Date: Sat, 25 Jan 2014 15:51:05 +0000 From: James Griffin <jmzgriffin@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: pkg command to remove multiple packages Message-ID: <1481503.WyXhS8WgeP@kontrol.kode5.net> In-Reply-To: <52E39294.3010106@FreeBSD.org> References: <52E38EB5.3080604@gmail.com> <52E39294.3010106@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1481503.WyXhS8WgeP>