On Tue, Mar 25, 2014 at 03:29:23PM +0900, Randy Bush wrote: > > > Royce Williams <ro...@tycho.org> wrote: > > > > Colin, adding you to this thread with proposed patch (two options) for > > freebsd-update, below. > > > > On Sat, Mar 22, 2014 at 10:49 AM, Randy Bush <ra...@psg.com> wrote: > > >> Honest question, have you been building things from source under > > >> debian's ports or are you using their version of "pkg"? > > > > > > the latter > > > > > > and i have two 9 systems where i try to use freebsd-update. also a > > > time-consuming rabbit hole leading nowhere pleasant. e.g. > > > > > > # freebsd-update upgrade -r 9.2-RELEASE-p3 > > > Looking up update.FreeBSD.org mirrors... 5 mirrors found. > > > Fetching metadata signature for 9.2-RELEASE from update5.freebsd.org... > > > done. > > > Fetching metadata index... done. > > > Inspecting system... done. > > > > > > The following components of FreeBSD seem to be installed: > > > kernel/generic world/base world/doc world/games world/lib32 > > > > > > The following components of FreeBSD do not seem to be installed: > > > > > > Does this look reasonable (y/n)? y > > > > > > Fetching metadata signature for 9.2-RELEASE-p3 from > > > update5.freebsd.org... failed. > > > Fetching metadata signature for 9.2-RELEASE-p3 from > > > update2.freebsd.org... failed. > > > Fetching metadata signature for 9.2-RELEASE-p3 from > > > update3.freebsd.org... failed. > > > Fetching metadata signature for 9.2-RELEASE-p3 from > > > update4.freebsd.org... failed. > > > Fetching metadata signature for 9.2-RELEASE-p3 from > > > update6.freebsd.org... failed. > > > No mirrors remaining, giving up. > > > > Randy, you're not the first to specify a patch level in the target > > release version for freebsd-update. This failure mode could be more > > friendly. > > raid0.dfw.rg.net:/root# freebsd-update upgrade -r 9.2-RELEASE > freebsd-update: Cannot upgrade from 9.2-RELEASE to itself > raid0.dfw.rg.net:/root# freebsd-update upgrade > freebsd-update: Release target must be specified via -r option.
You're using it wrong. Use "freebsd-update fetch install" to update staying in the currently running RELEASE branch. So you just get security updates and errata. Use "freebsd-update upgrade -r 10.0-RELEASE" followed by two "freebsd-update install" to upgrade to a newer release version. I admit that the two cals of "freebsd-update install" are consfusing. The first run installs the new kernel. Then you should reboot the new kernel and the second installs the new world. If I'd written freebsd-update I would have called it "installkernel" and "installworld" to avoid confusion. But apart from that freebsd-update(8) just works...
pgpotSmHN_acc.pgp
Description: PGP signature