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

  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist
  • How to Install Any OS on a Physical Drive from Windows Using VMware Workstation (Linux, Windows, BSD)
  • CDN Cloudflare how to set and preserve the real IP of the client without modifying application code on Apache
  • CentOS 7 fix Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was 14: curl#6 -
  • Ubuntu Debian How To Install Recommended Packages Automatically
  • How to set Linux Ubuntu Redhat Debian Command Line http https socks proxy for yum apt