Creating a CVS Repository

by Jeff Hunter, Sr. Database Administrator


Now, let's create a CVS repository. You will first need to decide on the location of the directory where you want to store the CVS repository. Here are several suggestions of directory locations for the repository:

If you want to follow the Filesystem Heirarachy Standard, (http://www.pathname.com/fhs/), then the preferred location for the repository would be: "/var/lib/cvsroot". That is the directory I will use in this example:

# mkdir /var/lib
# mkdir /var/lib/cvsroot

# chgrp cvsdev /var/lib/cvsroot
# ls -l /var/lib
total 2
drwxr-xr-x   2 root     cvsdev       512 Jan 23 19:18 cvsroot

# chmod g+srwx /var/lib/cvsroot
# ls -l /var/lib
total 2
drwxrwsr-x   2 root     cvsdev       512 Jan 23 19:18 cvsroot

# cvs -d /var/lib/cvsroot init
# ls -la /var/lib/cvsroot
total 6
drwxrwsr-x   3 root     cvsdev       512 Jan 23 19:22 .
drwxr-xr-x   3 root     other        512 Jan 23 19:18 ..
drwxrwsr-x   3 root     cvsdev      1024 Jan 23 19:22 CVSROOT

# chown -R cvs /var/lib/cvsroot
# ls -l /var/lib
total 2
drwxrwsr-x   3 cvs      cvsdev       512 Jan 23 19:22 cvsroot
Let's know examine the above commands:



Last modified on: Friday, 11-May-2012 19:25:03 EDT
Page Count: 85672