How To Install viewvc on Ubuntu 18.04

In this tutorial we learn how to install viewvc on Ubuntu 18.04. viewvc is web interface for CVS and/or Subversion repositories

Introduction

In this tutorial we learn how to install viewvc on Ubuntu 18.04.

What is viewvc

viewvc is:

ViewVC is a browser (web) interface for CVS and Subversion version control repositories. It generates templatized HTML to present navigable directory, revision, and change log listings. It can display specific versions of files as well as diffs between those versions.

Basically, ViewVC provides the bulk of the report-like functionality you expect out of your version control tool, but much more prettily than the average textual command-line program output.

ViewVC can be used in two modes, both of which are supported by this package: (1) by running the simple stand-alone server “viewvc-standalone”, with or without a GUI, and/or (2) by integrating ViewVC with any CGI-enabled HTTP server like Apache or nginx.

Three different binaries are provided: FastCGI, WSGI (for Apache mod_python), and plain CGI.

There are three methods to install viewvc on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install viewvc Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install viewvc using apt-get by running the following command:

sudo apt-get -y install viewvc

Install viewvc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install viewvc using apt by running the following command:

sudo apt -y install viewvc

Install viewvc Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install viewvc using aptitude by running the following command:

sudo aptitude -y install viewvc

How To Uninstall viewvc on Ubuntu 18.04

To uninstall only the viewvc package we can use the following command:

sudo apt-get remove viewvc

Uninstall viewvc And Its Dependencies

To uninstall viewvc and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove viewvc

Remove viewvc Configurations and Data

To remove viewvc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge viewvc

Remove viewvc configuration, data, and all of its dependencies

We can use the following command to remove viewvc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge viewvc

References

Summary

In this tutorial we learn how to install viewvc package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.