| The FreeBSD Diary | 
|  | (TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. | 
| 
Upgrading from 3.1-Release to 3.1-Stable
23 March 1999
 | 
| This article shows you how to upgrade from 3.1-Release to 3.1-Stable using /stand/sysinstall. You can also use cvsup. Why did I upgrade to -Stable? Because -Stable is more stable than -Release. For more detail on what -Stable is and why you might want to get it, see The Cutting Edge. | 
| Why upgrade? | 
| I had recently installed FreeBSD to replace Windows 95. However, I installed 3.1-Release when I actually wanted 3.1-Stable. I want all my machines on the same release. | 
| The upgrade that failed | 
| This first attempt did not work.  Please see the next section. I ran /stand/sysinstall and chose to Upgrade an existing system. From then it was pretty much the same as the original install of FreeBSD to replace Windows 95. After the install finished, and I rebooted, I noticed the following: $ uname -a FreeBSD kennett.freebsddiary.cx 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Mon Feb 15 11:08:08 GMT 1999 jkh@usw3.freebsd.org:/usr/src/sys/compile/GENERIC i386 | 
| I have had enough of this toying around.  So I've decided to download the files
    to my local FTP server.  This will reduce the Internet traffic and speed up my
    installs.   And seeing as I'm doing so many of them, I think this will save me time. I ftp'd to releng3.freebsd.org and grabbed a tarball of the stuff I needed. 
      Note: If you look at the FTP directories listed above, you will not find any tarballs (e.g. bin.tar or manpages.tar). But you will see directories called manpages and bin. So how did we manage to get those files when they don't exist? Well, it's a feature of ftp. When you use the get command on a directory, and append .tar to the end of the directory name, the get command automatically constructs the tarbar for you. This certainly saves you a great deal of time! Then I untarred the files and created a symlink. I found I wasn't able to do this without the symlink as shown below: 
      Then I tried again. No luck. I was still on 3.1-RELEASE. I continued along this track several times until someone on the #FreeBSD IRC channel on Undernet asked if I'd updated the kernel sources..... DOH! So I went back to releng3.freebsd.org and downloaded the src directory to my FTP server. | 
| The upgrade that worked | 
| I ran /stand/sysinstall again.  See what I did in FreeBSD to replace Windows 95 for details on what to
    choose and where to go.  In short, I selected: 
 After that worked, I rebooted and everything was fine. Then it was time upgrade the kernel sources. So I ran /stand/sysinstall again. This time I choose: 
 After this step, I created myself a custom kernel. Now when I did a uname -a, I get this: kennett# uname -a FreeBSD kennett.freebsddiary.cx 3.1-19990318-STABLE FreeBSD 3.1-19990318-STABLE #3: Thu Mar 18 09:03:30 NZDT 1999 root@kennett.freebsddiary.cx:/usr/src/sys/compile/KENNETT i386 | 
| Did this help? | 
| This was the first time I've upgraded FreeBSD via /stand/sysinstall. If this doesn't work for you, I'd like to know about it. All comments will be appreciated. |