Date: Mon, 24 Feb 2014 11:22:46 -0700 From: "Dale Scott" <dalescott@shaw.ca> To: "'Matthew Seaman'" <matthew@freebsd.org>, <freebsd-questions@freebsd.org> Subject: RE: oops - ran 2nd "freebsd-update install" before rebuilding ports [SOLVED] Message-ID: <002a01cf318d$6ab9e070$402da150$@shaw.ca>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Matthew Seaman > Sent: Monday, February 24, 2014 9:20 AM > To: freebsd-questions@freebsd.org > Subject: Re: oops - ran 2nd "freebsd-update install" before rebuilding = ports >=20 > On 02/24/14 15:18, Dale Scott wrote: > > After going through one upgrade to 10.0-RELEASE from 9.x, I got = cocky > > and started working on two upgrades from 8.3 to 9.0-RELEASE at the > > same time. I forgot which system I was ssh'd into and ran > > "freebsd-update install" for the 2nd time on one system before > > rebuilding all the ports, and even pkg won't run now as the libutil = version it's > > linked to no longer exists. > > ... >=20 > You should still be able to use pkg_static -- which is, as the name = suggests, > statically linked. >=20 > Start by: >=20 > # pkg_static install -f pkg >=20 > which should replace your pkg(8) with one compiled for the version of = the OS > you're running. 10.x comes with /etc/pkg/FreeBSD.conf pointing at the = default > FreeBSD package mirrors, which is a good place to get a pkg package... >=20 > You can then work through reinstalling all your ports by whatever = means you > initially intended. Generally it's best to make a note of wat you = want installed, > clear down all your installed packages, making backups of any config = files as > necessary, and then start again with an empty /usr/local. Of course, = this > implies a bit of service downtime while you do the reinstalling job, = but that's > hard to avoid in a major version upgrade however you do it. (And you = said you > didn't really mind anyhow...) >=20 > Cheers, >=20 > Matthew >=20 Thanks Matthew! The only glitch was "pkg-static" (not pkg_static).=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002a01cf318d$6ab9e070$402da150$>