How To Install kscope on Debian 9
Introduction
In this tutorial we learn how to install kscope
on Debian 9.
What is kscope
kscope is:
KScope is a graphical front-end to Cscope. It provides a source browsing and editing environment for large C projects. KScope is focused on source editing and analysis.
KScope is built around an efficient mechanism for code-navigation, which allows the user to run queries on the code.
The types of queries KScope can run include:
- Get all references to a symbol
- Find the definition of a symbol
- Find all functions called by or calling to a function
- Find an EGrep pattern
- Find all files #including some file
These queries are handled by an underlying Cscope process. KScope simply serves as a front-end to this process, feeding it with queries, and parsing its output into result lists. The items in those lists can later be selected to open an editor at the matching line.
Main Features:
- Multiple editor windows (using your favourite editor)
- Project management
- Front-end to most Cscope queries
- Tag list for every open editor
- Call-tree window
- Session management, including saving and restoring queries
- Works with externally-built cscope.out files
There are three methods to install kscope
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install kscope Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install kscope
using apt-get
by running the following command:
sudo apt-get -y install kscope
Install kscope Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install kscope
using apt
by running the following command:
sudo apt -y install kscope
Install kscope 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 kscope
using aptitude
by running the following command:
sudo aptitude -y install kscope
How To Uninstall kscope on Debian 9
To uninstall only the kscope
package we can use the following command:
sudo apt-get remove kscope
Uninstall kscope And Its Dependencies
To uninstall kscope
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove kscope
Remove kscope Configurations and Data
To remove kscope
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge kscope
Remove kscope configuration, data, and all of its dependencies
We can use the following command to remove kscope
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge kscope
Dependencies
kscope have the following dependencies:
References
Summary
In this tutorial we learn how to install kscope
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.