From owner-freebsd-questions@FreeBSD.ORG Fri Jul 23 20:20:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BF3F1065674 for ; Fri, 23 Jul 2010 20:20:30 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id BE07B8FC12 for ; Fri, 23 Jul 2010 20:20:29 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o6NKKOTw037991 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 23 Jul 2010 21:20:24 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4C49F980.8060008@infracaninophile.co.uk> Date: Fri, 23 Jul 2010 21:20:16 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Martin Koch Andersen References: <165F7744-37AD-42F9-AB0B-3E1E1855D09E@925.dk> In-Reply-To: <165F7744-37AD-42F9-AB0B-3E1E1855D09E@925.dk> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6457A5B2001872FE63BC22CC" X-Virus-Scanned: clamav-milter 0.96.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_40,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: freebsd-install upgrade, how many install phases required X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 20:20:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6457A5B2001872FE63BC22CC Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 23/07/2010 17:19:54, Martin Koch Andersen wrote: > Hi, >=20 > Will freebsd-install upgrade tell you, if any libraries version numbers= got bumped, and thus if installed packages needs rebuilding? >=20 > I followed the handbook and did the 8.0-RELEASE to 8.1-RELEASE upgrade = like: >=20 > freebsd-update -r 8.1-RELEASE upgrade > freebsd-update install > shutdown -r now > freebsd-update install freebsd-update only updates the *base* system. It doesn't update the ports tree at all. For that, you need portsnap, which works very much like freebsd-update (or else one of a number of alternatives like csup(1), which work differently.) Once you've updated the ports tree using portsnap (or whatever) then you can update your installed ports from it, which is where tools like portupgrade(1) or portmaster(1) come in. portupgrade(1) won't find any work to do unless you have run portsnap first. > And then: >=20 > portupgrade -af > freebsd-update install > shutdown -r now >=20 > But was this last round of rebuilding installed ports etc. really neede= d? Or would the second "freebsd-update install" have told me if it was? I= n any case, the last "freebsd-update install" did nothing. If the OS major version is the same, then the shlib ABI version on all the shlibs in the base system is still the same. That's a guarantee by the FreeBSD project. Or in other words, binary compatibility between all 8.x releases (or all 7.x, or whatever). So, there is no reason to update ports that is caused by using freebsd-update to do a minor version upgrade. No, you didn't need to run 'portupgrade -af' at all. Running portsnap and then 'portupgrade -a' would however have been a reasonably good idea since you were in an upgrading mood. Ports may well have become out of date due to the normal updating of the ports tree over the passage of time. This is largely independent of development schedules in the base system, so should there can be updates available to apply at just about any time. On the other hand, if you do a *major* version upgrade, you simply *do* need to reinstall every port. freebsd-update warns you about this directly, and the necessity of doing so is well documented all over the place eg. at Colin Percival's blog: http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.= html Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig6457A5B2001872FE63BC22CC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJ+YgACgkQ8Mjk52CukIyu3gCeKhI0WZiNC9997VjtgO22zPNo rtsAn3TG/6UbcnsabfuDri3KU+HIxXPP =XCJa -----END PGP SIGNATURE----- --------------enig6457A5B2001872FE63BC22CC--