How to Install CVS Version Control on Linux/Ubuntu

In this article let us take a look at how to install CVS Version Control on Linux/Ubuntu,

Step 1: Install CVS using the apt-get package tool,
# apt-get install cvs

Reading package lists... Done
Suggested packages:
  mksh rcs
The following NEW packages will be installed:
Unpacking cvs (2:1.12.13+real-27build1) ...
Setting up cvs (2:1.12.13+real-27build1) ...
Allowing use of questionable username.
Adding group `_cvsadmin' (GID 109) ...
Step 2: Install CVS Server using the apt-get package tool,
# sudo apt-get install cvsd
Reading package lists... Done
The following NEW packages will be installed:
Configuring cvsd

The whole idea of cvsd is to serve repositories. Specify a colon ':' separated list of
repositories to serve. The location of these repositories is relative to the specified
chroot jail (/var/lib/cvsd) and should start with a '/'.

The repositories here should be initialized by hand with something like 'cvs -d
/var/lib/cvsd/myrepos init' after which passwords can be set with 'cvsd-passwd
/var/lib/cvsd/myrepos anonymous'. See the file /usr/share/doc/cvsd/README.gz for details on
creating repositories.
if your cvs binary changes (new version) you should rerun cvsd-buildroot
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for systemd (245.4-4ubuntu3.15) ...
Repositories to serve: cvs-server

Step 3: Initialise the repo
cvs -d /var/lib/cvsd/cvs-server init

Step 4: Create User
cvsd-passwd /var/lib/cvsd/cvs-server user-name

Step 5: Login to CVS
# cvs -d :pserver:user-name@localhost:/var/lib/cvs/cvs-server login
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.