Date: Sat, 9 Jun 2012 20:29:17 +0200 From: Marcin Wisnicki <mwisnicki+freebsd@gmail.com> To: Jason Hellenthal <jhellenthal@dataix.net> Cc: freebsd-ports@freebsd.org Subject: Re: How to uninstall pkgng Message-ID: <CAC9GOO_5ni1j9Gm7gt7vifMysW%2BhjZ1z6aW07v-w5%2BG5yL-fpw@mail.gmail.com> In-Reply-To: <20120609182343.GB50954@DataIX.net> References: <jr025r$6b2$1@dough.gmane.org> <4FD38FEB.5000402@infracaninophile.co.uk> <20120609182343.GB50954@DataIX.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 9, 2012 at 8:23 PM, Jason Hellenthal <jhellenthal@dataix.net> w= rote: > > > On Sat, Jun 09, 2012 at 07:03:23PM +0100, Matthew Seaman wrote: >> On 09/06/2012 18:46, Marcin Wisnicki wrote: >> > I've made a mistake of installing pkgng on 9.0-amd64 but since there i= s no >> > up-to-date repository I want to remove it. >> > >> > What would be the correct procedure to achieve that ? >> > >> > Invoking `pkg delete -a` still leaves some files including /usr/sbin/p= kg. >> >> Not easy. =C2=A0You'ld have to delete the pkg port, undo any additional >> configuration you may have added to eg. /etc/make.conf (ie. remove >> WITH_PKGNG settings), undo any patches to portmaster (if you're using >> that) and then reinstall all your ports using the original package tools >> to rebuild /var/db/pkg/ contents. >> >> /usr/sbin/pkg is part of base nowadays. =C2=A0You don't want to delete t= hat. >> So I guess that if I have empty /usr/local, no make.conf and no /var/db/pkg/local.sqlite then I'm fine ? > > When was pkgng made part of base ? > It seems to be a simple wrapper/bootstrapper (see src/usr.sbin/pkg) that just downloads real thing. > /usr/sbin/pkg would be from pkgng if you are using it to delete itself > then the problem you are experiencing is the file is busy at the time of > deletion. Try pkg_delete instead ? > It have deleted itself just fine. > > > -- > > =C2=A0- (2^(N-1))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC9GOO_5ni1j9Gm7gt7vifMysW%2BhjZ1z6aW07v-w5%2BG5yL-fpw>