The FreeBSD Diary
Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link.
Installing cvsup 6 May 2000
|This is the second in a series of articles about installing a new server. This article discusses how I installed cvsup which then would enable me to upgrade the system, which is my next step.|
NOTE: Since originally writing this article, I now add cvsup with the following command:
I suggest you use the above command instead of what appears below.
Other ways of getting cvsup
There are two ways to install cvsup. From a port, or from a package. From a port, you would do this:
# cd /usr/ports/net/cvsup-bin # make install
Warning: do not install cvsup from sources (i.e. /usr/ports/net/cvsup). It takes hours and hours to install.
But if you don't have the ports skeletons installed, what do you do? Well, you could install a port without the ports. Or you could just use a package. Which is what I did in this case.
/stand/sysinstall Configure Packages CDROM net cvsup-bin-16.1 (press space, then enter)
If you don't have the CD-ROM, try ftp, etc. See also installing a port without installing the ports for an alternative to the above. Of course, you could always just grab the package from an ftp server. Look in pub/FreeBSD/FreeBSD-stable/packages/net/ for cvsup-bin-16.1.tgz on your favorite server. For a list of servers, see Official Mirrors.
|This example assumes you are cvsup'ing your source. If you are cvsup'ing your
ports collection, please refer to Updating the ports collection.
When you run cvsup, you need a configuration file. I used the sample cvsup files supplied with FreeBSD:
WARNING: In older versions of FreeBSD, you won't find
I copied this file to my favorite place and modified it accordingly. I changed the host to my favorite cvsup server and I also changed the release tag. Here are the items I changed:
*default host=fred *default release=cvs tag=RELENG_4
That means I get FreeBSD 4 STABLE from fred, the cvsup server on my local LAN. If you don't know what cvsup server to use, look at this mirror list, which is very up to date.
It is very important to get the tag correct. If you don't, you'll have the wrong sources. The default value is . which means -current. If you are reading this article, you probably don't want -current. If anything, you want -stable. So pick the correct tag. For a list of valid tags, try the following URLs:
If you are looking for FreeBSD 4.1, then your tag would be RELENG_4_1_0_RELEASE.
NOTE: Don't worry about releases/version when cvsup'ing your ports. There is only one version of the Ports collection. All versions of FreeBSD use the same ports collection. Therefore, when updating your ports use this tag:
Then I ran cvsup this way:
Actually, can get away with just:
Try that and see if it works. I had to use the first example because of a firewall issue. You may be able to get away with the second example.
After that, I did a make-world. But I'll document that in another article. It's time to head out for dinner.