How to upgrade to FreeBSD 7.1

With 7.1 around the corner it might be handy to tell what you need to do in order to upgrade.

First of all you need to understand that I am in no way responsible for the actions you are doing on your system. I can give an advise, but if there is one typo somewhere it could trash your system. That is the case now, and it will forever be as long as there are computers :)

That said: Do you know what kind of user you are?

Did you install via the CD and never heared about CVSup? SVN? and things like that?

Then FreeBSD-update (/usr/sbin/freebsd-update) is the thing for you!
It’s the most simple way to upgrade from a previous -RELEASE (or Security branch) to the current one. Do note that -STABLE or -RC’s are not taken into account and cannot be used to upgrade to 7.1-RELEASE.

In order for you to upgrade please use : /usr/sbin/freebsd-update -r 7.1-RELEASE upgrade && /usr/sbin/freebsd-update -r 7.1-RELEASE install

After this the system will tell you:

Kernel updates have been installed. Please reboot and run
“/usr/sbin/freebsd-update install” again to finish installing updates.

(Thanks richard for the information):

Voila, you will be running 7.1 now!

For people using CVSup: replace the RELENG_7_0 part with RELENG_7_1 (it’s ok if there are other things behind it, as long as you change the zero to a one (0 -> 1)).

Rebuild your kernel as you probably did many times before (cd /usr/src && make buildworld && make buildkernel && make installkernel [reboot in single user mode] mergemaster -p && make installworld && make delete-old && mergemaster [reboot] make delete-old-libs (be careful that ports and things do not depend on older versions. I have been bitten by an account that used the bash shell, with libreadline, which was deleted by make delete-old-libs.. no more bash shell for me!)

If you are doing CVS checkouts you should probably do something with -r RELENG_7_1 or RELENG_7_1_RELEASE to get things going, I would advise the first one since patches will be installed there as well, the _RELEASE branch is static. Then do the tricks like above as well.

If you are a subversion user you should checkout the 7.1 release (all subversion users know how to do this) and perform a bit of magic.

5 thoughts on “How to upgrade to FreeBSD 7.1”

  1. I was under the impression that freebsd-update could update to/from release candidates as well?

    FreeBSD 7.1-RC2 (GENERIC) #0: Tue Dec 23 15:18:30 UTC 2008

    For example, I upgraded from 7.0 to 7.1-RC1 and then 7.1-RC2.

    Am I misunderstanding?

  2. Yes, you can upgrade to the RC’s, but the use is imo not supported. But I could be wrong about that. The official things is that it supports upgrading between -RELEASE’s. I know that at some point you can also upgrade to a -BETAX but the moment a new version is out, you can no longer use the old version.

    I’ll try to poke Colin to see what is the official policy wrt. FreeBSD-update.

    Cheers && Thanks,

  3. Hello

    I figure you mean third party packages as installed by tools like portmanager etc? You can use portupgrade (I know how that works, the rest I do not know, advise welcome) to automatically upgrade all installed packages: portupgrade -af will force upgrade all installed ports.

    If you do not mean this, can you please tell me what you are looking for?


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>