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

  • ImageMagick Convert PDF Not Authorized
  • ImageMagick Converted PDF to JPEG some files have a black background solution
  • Linux Mint Mate Customize the Lock screen messages and hide username and real name
  • Ubuntu/Gnome/Mint/Centos How To Take a partial screenshot
  • ssh how to verify your host key / avoid MIM attacks
  • Cisco IP Phone CP-8845 8800/8900 Series How To Reset To Factory Settings Instructions
  • ls how to list ONLY directories
  • How to encrypt your SSH private key file id_rsa
  • Linux Mint 18 Disable User Name List from showing on Login Screen
  • Firefox Cannot Hit Enter Key In Address Bar and Location History Not Working
  • Cisco Unified Communications Manager / CUCM IP 8.6,10,12 Install Error Solution
  • Ubuntu Debian Mint Linux SSHD OpenSSH Server Not Starting After Reboot Solution
  • nmap how to scan for all ports and not just the 1000 most common ports
  • Windows 7,8,10 and Server 2008, 2012, 2016, 2019 Read Only Attribute Won't Go Away
  • bind / named how to make a wildcard record and retain defined A records
  • Cisco Unified Communications Manager 12 Install Errors on Proxmox/KVM
  • Local Vs Universally Administered MAC Address NIC Refuses to come up
  • Cisco Unified Communications Manager 12 CUCM 12 - How To Enable Video Calling
  • Windows 7, 8, 10, Windows Server 2008, 2012, 2016, 2019 How To AC97 Audio Drivers and Other Unsigned Drivers
  • Cisco Unified Communications Manager / CUCM IP Telephony Definitions