Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2014 16:19:34 +0000
From:      Matthew Seaman <matthew@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: oops - ran 2nd "freebsd-update install" before rebuilding ports
Message-ID:  <530B7116.4040200@freebsd.org>
In-Reply-To: <001801cf3173$b331a910$1994fb30$@shaw.ca>
References:  <001801cf3173$b331a910$1994fb30$@shaw.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--iB2B4wsXxopOsLMEIlWUhWpjQNcj8fS86
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 02/24/14 15:18, Dale Scott wrote:
> After going through one upgrade to 10.0-RELEASE from 9.x, I got cocky a=
nd
> started working on two upgrades from 8.3 to 9.0-RELEASE at the same tim=
e. I
> forgot which system I was ssh'd into and ran "freebsd-update install" f=
or
> the 2nd time on one system before rebuilding all the ports, and even pk=
g
> won't run now as the libutil version it's linked to no longer exists.
>=20
> I can afford to have the system down for a day or two, and I'm willing =
to be
> diverted a little for a learning opportunity, so should I a) try to rec=
over
> the system from its current state, b) recover the entire system from ba=
ckup
> and start over, or c) build a new 10.0-RELEASE system from scratch and
> recover the data from backup?

You should still be able to use pkg_static -- which is, as the name
suggests, statically linked.

Start by:

    # pkg_static install -f pkg

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...

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..=
=2E)

	Cheers,

	Matthew



--iB2B4wsXxopOsLMEIlWUhWpjQNcj8fS86
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTC3EeXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTna58QAKxlUDb/AJ9ed11mdQM8kWgi
5Uc46csggHAVHNuI9ZmkbyTy/QmHMjNWdEfG9ZA/X1r8pZdpr6a4k5QoT3FN/v3+
DnAXIaJIMno1YQWDP9AjjiUWRv0KKTtXe2wDMqyLyC2LS+OZj5PAG8rLl78MuiIq
DRIDEJr5AZe3XD0LrZbPXTq2nJWm+G/KWbJCrdLBfL0es/f4V339atjgLPG95usx
tZA+e8HCsqb2qr6tQ2XaPYaz+wdgE80Wjdz2xSEg3f1VG0vKQRIOxcGpS1NMKDRH
89yElVLJCgiW8OiIA/fjBoCMtXh5ZpAbh8A+1RVOKMQ41//yixv+xlYfHv/UsGCv
CCOlFJyM04+griMnhCE0OtNc52tj5WWAdajAK/y4L+nzHzmdBF2HGcemrr68mzqL
lNnsmqQQhKE4UWWJXR4kukmPU3JmFNerQkSSNcoq5+KgNwSaPggbE9ia8dAT/TeA
YppkNzMuNVqKgIOTVUhzCQC/GrhL3sncxeXZx5tbH+Cl/2cj/A2vxVekoIA3XZQj
0LVByvR5OCkNR58iHCSNJjJ8PlCFyzaV9GDh1r1WyCqmOqx5+Y+xihEYmXcbr31R
wnG50PRtwsJtkZEvC586O/FqK4hO/wfk0S/3Yn2cJNdmcS+Bhr3YS+88REK6Jgc7
NgE3ycCZO+w6AsBuEbwx
=Ky37
-----END PGP SIGNATURE-----

--iB2B4wsXxopOsLMEIlWUhWpjQNcj8fS86--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?530B7116.4040200>