The easiest way to install CVS under GNU/Linux is with a package manager such as YaST, GnoRPM, Kpackage, or Synaptic. In all of the package managers that I’m familiar with, the package name is either cvs or cvs followed by some punctuation and a version number. Figures 2-1 and 2-2 are screenshots of the installation with package managers, and show which menu CVS can be found in. Find and select CVS, and then click on the Install or OK button, as appropriate.
Figure 2-1.CVS installation with Synaptic
Figure 2-2.CVS installation with Fedora
The second easiest way to install CVS on GNU/Linux is using a command-line package manager. If you’re using apt (Debian, Ubuntu, and Mac OS X users who are running Fink), log in as root and use the command apt-get install cvs. apt will find the most recent version in its sources list. If using yum, the command is yum install cvs. Examples 2-2 and 2-3 show an apt and a yum installation.
Example 2-2. CVS installation with apt
root@pharaoh:/home# apt-get install cvs Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: cvs 0 upgraded, 1 newly installed, 0 to remove and 30 not upgraded. Need to get 1441kB of archives. After unpacking 3088kB of additional disk space will be used. Get:1 http://au.archive.ubuntu.com breezy/main cvs 1:1.12.9-13ubuntu1 [1441kB] Fetched 1441kB in 0s (2519kB/s)
Preconfiguring packages ... Selecting previously deselected package cvs. (Reading database ... 64166 files and directories currently installed.) Unpacking cvs (from .../cvs_1%3a1.12.9-13ubuntu1_i386.deb) ... Setting up cvs (1.12.9-13ubuntu1) ...
Example 2-3. CVS installation with yum
[root@localhost ~]# yum install cvs Loading "installonlyn" plugin Setting up Install Process Setting up repositories core [1/3] updates [2/3] extras [3/3] Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for cvs to pack into transaction set. cvs-1.11.21-3.2.i386.rpm 100% |=========================| 18 kB 00:00 ---> Package cvs.i386 0:1.11.21-3.2 set to be updated --> Running transaction check
Dependencies Resolved
===========================================
Package
Arch
Version
Repository
Size
===========================================
Installing:
cvs
i386
1.11.21-3.2
core
732 k
Transaction Summary
=========================================== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 732 k Is this ok [y/N]: y Downloading Packages: (1/1): cvs-1.11.21-3.2.i3 100% |=========================| 732 kB 00:03 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: cvs ######################### [1/1]