CVSUp the Easy Way

CVSUp the Easy Way

If you're reading this you probably have never used CVSUp or don't know how.

CVSUp can be used for two things or just one if you prefer.
*Keeping your kernel up to date
*Keeping your port list up to date

Start by editing the following file in:
[b:76928b387d]vi /usr/share/examples/cvsup/cvs-upfile[/b:76928b387d]

It can be quite overwhelming with all the crazy options.
Basically there are only 3 parts you need to worry about.

You need to specify what release you are CVSing for. You can leave the default and it will upgrade you to the latest FreeBSD version/ports but if you want to keep your version the same you'll have to specify the correct tag.

See here for the list of tags:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html

In my case I want to keep my 5.3-RELEASE the same so I will set my tag with:
[quote:76928b387d]*default tag=RELENG_5_3
[/quote:76928b387d]
If you plan on upgrading your kernel then leave the src-call portion as it is (if you just want to upgrade the list of ports then comment it out)

If you were to use:
[b:76928b387d]*default tag=. [/b:76928b387d](it would use the most current release which is currently 6.0)

Here is what my final file will look like:
[code:1:76928b387d]
*default tag=RELENG_5_3
*default host=cvsup12.FreeBSD.org
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress

#src-all
doc-all
ports-all
cvsroot-all[/code:1:76928b387d]


Now to do a cvsup just do:
[quote:76928b387d]cvsup /usr/share/examples/cvsup/cvs-upfile[/quote:76928b387d]

This will take a long time to do!

*note you can move the cvs-upfile wherever you want just make sure you use the correct path when running cvsup

If you want more in-depth info then check the FreeBSD handbook on CVSUP:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-CONFIG-VERS


I'm going to add one more note here that will probably save a day of wasted time :roll:

You will essentially need at least two types of CVS files in my opinion.
Maybe you don't want to upgrade the source/kernel by doing a src-all update and you just want PORTS?

It is not blatantly obvious by you must specify the release tag as just '.' otherwise the only thing that will be updated is the source. So for example with this CVSUP file:
[quote:a462bff5a6]
*default tag=RELENG_5_3
*default host=cvsup12.FreeBSD.org
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress

#src-all
doc-all
ports-all
cvsroot-all[/quote:a462bff5a6]

The ports won't be updated unless you change [b:a462bff5a6]*default tag=RELENG_5_3[/b:a462bff5a6] to [b:a462bff5a6]*default tag=.[/b:a462bff5a6]

The explicit tags are only for updating source, so the above file example is fine if you want to update your source/kernel.

Otherwise if you want to update your ports make sure you specify '.' as your tag or you will not have an updated ports tree.

You don't want to know how I know this :)



Tags:

cvsup, waycvsup, wayif, kernel, editing, vi, usr, examples, cvs, upfile, overwhelming, specify, cvsing, default, upgrade, freebsd, ports, ll, tags, http, www, org, en_us, iso, handbook, html, releng_, _, upgrading, src, portion, currently, prefix, var, db, delete, rel, suffix, compress, cvsroot, depth, info, config, versi, essentially, update, blatantly, updated, bff, explicit, updating,

Latest Articles

  • Cloned VM/Server/Computer in Linux won't boot and goes to initramfs busybox Solution
  • How To Add Windows 7 8 10 11 to GRUB Boot List Dual Booting
  • How to configure OpenDKIM on Linux with Postfix and setup bind zonefile
  • Debian Ubuntu 10/11/12 Linux how to get tftpd-hpa server setup tutorial
  • efibootmgr: option requires an argument -- 'd' efibootmgr version 15 grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.
  • Apache Error Won't start SSL Cert Issue Solution Unable to configure verify locations for client authentication SSL Library Error: 151441510 error:0906D066:PEM routines:PEM_read_bio:bad end line SSL Library Error: 185090057 error:0B084009:x509 certif
  • Linux Debian Mint Ubuntu Bridge br0 gets random IP
  • redis requirements
  • How to kill a docker swarm
  • docker swarm silly issues
  • isc-dhcp-server dhcpd how to get longer lease
  • nvidia cannot resume from sleep Comm: nvidia-sleep.sh Tainted: Linux Ubuntu Mint Debian
  • zfs and LUKS how to recover in Linux
  • [error] (28)No space left on device: Cannot create SSLMutex Apache Solution Linux CentOS Ubuntu Debian Mint
  • Save money on bandwidth by disabling reflective rpc queries in Linux CentOS RHEL Ubuntu Debian
  • How to access a disk with bad superblock Linux Ubuntu Debian Redhat CentOS ext3 ext4
  • ImageMagick error convert solution - convert-im6.q16: cache resources exhausted
  • PTY allocation request failed on channel 0 solution
  • docker error not supported as upperdir failed to start daemon: error initializing graphdriver: driver not supported
  • Migrated Linux Ubuntu Mint not starting services due to broken /var/run and dbus - Failed to connect to bus: No such file or directory solution