What is CVS — CVS is a version control system. Using it, we can record the history of our source code.
For example, sometimes bugs occures in new release of software, and we may not detect the bug until a long time after we made the modification. With CVS, we can easily retrieve old versions to see exactly which change caused the bug.
In this documentation we will describe how to configurel the CVS on linux operation system.
Here we assume that CVS is already installes in the system, in most of the system its installes by default. You can also download the the CVS source code from CVS website www.cvshome.org
Step 1 Create a new repository.
useradd –g cvsuser cvsuser
su – cvsuser
chmod 0770 /usr/local/cvsroot
chmod g+s /usr/local/cvsroot
Toinitialize the new repository, please execute:
cvs –d /usr/local/cvsroot init
Step 2 Create new user for CVS access
useradd –g cvsuser testuser
passwd testuser (to change the password of newly created user testuser)
Now we have to put the path of CVSROOT to /etc/bashrac , so that this will available to all the CVS users
open the file /etc/bashrc
and put the following lines
We should now able to login as the new Linux user and execute CVS commands on the new repository. For example, we could try creating a test module and import it into CVS:
su – testuser
echo “This is a my first test programe.” >> test.txt
cvs import –m “Importing test.” testmodule Vendor-1 Release-1
It is recommended to refer to the CVS manual for more information about running CVS commands