Ngspice CVS access

Ngspice source code is stored in a public (anonymous) accessible CVS (Concurrent Versioning System) maintained by For those who are familiar with the CVS issues, the following lines are self explanatory, for those who are not, they will be rather obscure. The latter should install CVS on their systems (using RPMs, DEBs or any other form of packaging standard) and then read the included documentation before attempting to retrieve the code stored in the CVS repository.

Setting up the environment for CVS on your computer:

There are two main philosophies in shell environments: csh and sh. The first thing you have to do is to set an environment variable to tell CVS where is the repository. We provide the syntax for csh and sh based system, if you have another shell philosophy, read its documentation to discover the correct command. For sh you have to type: export CVSROOT

If you are using bash (a sh derivative), you can condense the previous couple of commands into the following:


For csh you have to type:

setenv CVSROOT

To make these changes permanent, you should write them in your .profile file (whatever your system name it) so you are not requested to write them each time you connect to the CVS.

Login to the CVS repository:

Now that you have setup your computer to access ngspice CVS, you have to login to retrieve ngspice code. To do this you have to issue the command (either csh and sh/bash):

cvs login

You will be prompted for a password. Simply press return since there is no password for anonymous access. To retrieve the ngspice sources you have to issue the correct CVS command as follows.

Retrieving ngspice code:

To retrieve ngspice code you have to issue the command:

cvs co ngspice/ng-spice-rework

The command above is used to retrieve the actual development tree, if you want to retrieve the old, obsolete code you have to issue:

cvs co ngspice/ng-spice

Accessing CVS via web

Though CVS repositories are most commonly accessed using a CVS client, also provide a web-based interface to view CVS repositories. Browsing the CVS tree gives you a great view into the current status of this project's code. You may also view the complete histories of any file in the repository.