From owner-freebsd-questions@FreeBSD.ORG Mon Feb 24 18:22:55 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 207E4B18; Mon, 24 Feb 2014 18:22:55 +0000 (UTC) Received: from smtp-out-02.shaw.ca (smtp-out-03.shaw.ca [64.59.136.139]) by mx1.freebsd.org (Postfix) with ESMTP id DFFA11625; Mon, 24 Feb 2014 18:22:54 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=ryrf5q5p6c4dCQYR2lAej91p2ozDt6sfPnRAuS/Q8hc= c=1 sm=1 a=ctaQH430NvEA:10 a=BLceEmwcHowA:10 a=IkcTkHD0fZMA:10 a=TnnSnozJutt0IcAQwEzKEw==:17 a=6I5d2MoRAAAA:8 a=01vqDjDZWU_RcvFnxYkA:9 a=QEXdDO2ut3YA:10 a=SV7veod9ZcQA:10 a=J0RSnmEMHxUUrto8:21 a=ZHTZ_q6S4UM9Et4i:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO dalet61) ([68.144.182.135]) by smtp-out-02.shaw.ca with ESMTP; 24 Feb 2014 11:22:47 -0700 From: "Dale Scott" To: "'Matthew Seaman'" , Subject: RE: oops - ran 2nd "freebsd-update install" before rebuilding ports [SOLVED] Date: Mon, 24 Feb 2014 11:22:46 -0700 Message-ID: <002a01cf318d$6ab9e070$402da150$@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac8xiOW2DwrZBN9zR9yDQfepCbm+dQ== Content-Language: en-us X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 18:22:55 -0000 > -----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