How To Install cgvg on Debian 11

In this tutorial we learn how to install cgvg on Debian 11. cgvg is command-line source browsing tool

Introduction

In this tutorial we learn how to install cgvg on Debian 11.

What is cgvg

cgvg is:

cgvg is a pair of Perl scripts (“cg” and “vg”) which are meant to assist a programmer in doing command-line source browsing.

The idea is you can easily search for keywords in the code, and jump to the file and line where a match is found. Used with ctags(1), this can really help with jumping around and following code. Some features include a human-readable output, coloring, bold (and alternate bolding), and just sheer convenience for a programmer.

cgvg uses the Perl internal find and does its own searching, rather than being a wrapper for UNIX find(1) and grep(1). There is a ~/.cgvgrc file for per-user configuration, and some nice features like coloring, and multiple log files.

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

Install cgvg Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cgvg

Install cgvg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cgvg

Install cgvg 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install cgvg

How To Uninstall cgvg on Debian 11

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

sudo apt-get remove cgvg

Uninstall cgvg And Its Dependencies

To uninstall cgvg and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove cgvg

Remove cgvg Configurations and Data

To remove cgvg configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge cgvg

Remove cgvg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cgvg

Dependencies

cgvg have the following dependencies:

References

Summary

In this tutorial we learn how to install cgvg package on Debian 11 using different package management tools: apt, apt-get and aptitude.