How to install kscope on Ubuntu 17.04

How to install Kscope on Ubuntu 17.04

Kscope is a source browsing and editing environment for large projects written in C. It uses the Cscope code analysis engine to provide valuable information to coders. It is built around an efficient mechanism for code-navigation, which allows the user to run queries on the code. This tutorial covers the installation procedure of Kscope on Ubuntu 17.04.

Installation procedure

To start the installation procedure, add the repo by executing the following command.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.

+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:imported: 1
OK

The repositories are added to the system. Update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

The target system is updated with the required repositories. Install the kscope package and press y to continue with the installation process.

root@linuxhelp1:~# apt-get install kscope -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
cscope exuberant-ctags libqscintilla2-12v5 libqscintilla2-l10n
Suggested packages:
cscope-el vim | nvi | vile | emacsen
The following NEW packages will be installed:
cscope exuberant-ctags kscope libqscintilla2-12v5 libqscintilla2-l10n
0 upgraded, 5 newly installed, 0 to remove and 34 not upgraded.
Need to get 1,400 kB of archives
After this operation, 7,081 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 cscope amd64 15.8b-2 [209 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 exuberant-ctags amd64 1:5.9~svn20110310-11 [126 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libqscintilla2-l10n all 2.9.3+dfsg-4 [38.0 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libqscintilla2-12v5 amd64 2.9.3+dfsg-4 [814 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 kscope amd64 1.9.4-2build4 [213 kB]
Fetched 1,400 kB in 3s (430 kB/s)
Selecting previously unselected package cscope.
(Reading database ... 203062 files and directories currently installed.)
Preparing to unpack .../cscope_15.8b-2_amd64.deb ...
Unpacking cscope (15.8b-2) ...
Selecting previously unselected package exuberant-ctags.
Preparing to unpack .../exuberant-ctags_1%3a5.9~svn20110310-11_amd64.deb ...
Unpacking exuberant-ctags (1:5.9~svn20110310-11) ...
.
.
.
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Setting up exuberant-ctags (1:5.9~svn20110310-11) ...
update-alternatives: using /usr/bin/ctags-exuberant to provide /usr/bin/ctags (ctags) in auto mode
update-alternatives: using /usr/bin/ctags-exuberant to provide /usr/bin/etags (etags) in auto mode
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up cscope (15.8b-2) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Setting up libqscintilla2-12v5 (2.9.3+dfsg-4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up kscope (1.9.4-2build4) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...

For opening the package, type the kscopeapp command in the terminal and run the command.

root@linuxhelp1:~# kscopeapp

The kscope application is running successfully.

To remove the kscope package, execute the following command and press y to continue with the uninstallation process.

root@linuxhelp1:~# apt-get remove kscope -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cscope exuberant-ctags libqscintilla2-12v5 libqscintilla2-l10n
Use ' apt autoremove'  to remove them.
The following packages will be REMOVED:
kscope
0 upgraded, 0 newly installed, 1 to remove and 34 not upgraded.
After this operation, 863 kB disk space will be freed.
(Reading database ... 203128 files and directories currently installed.)
Removing kscope (1.9.4-2build4) ..
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...

Wasn' t that an easy installation procedure? kscope supports multiple editor windows, project management, front-end to cscope, tag-list and call-tree window.

Tag : Kscope
FAQ
Q
what is the use of installing Kscope in ubuntu?
A
Kscope is a source browsing and editing environment for large projects written in C. It uses the Cscope code analysis engine to provide valuable information to coders. It is built around an efficient mechanism for code-navigation, which allows the user to run queries on the code.
Q
which command to uninstall the Kscope package in ubuntu?
A
remove the kscope package, execute the following command
# apt-get remove kscope -y
Q
how to add repository for the Kscope in ubuntu?
A
add the repo of kscope by executing the following command
# add-apt-repository ppa:eugenesan/ppa
Q
is there any source package available for Kscope?
A
use the link to get source package for kscope
https://sourceforge.net/projects/kscope/files/latest/download?source=files
Q
Whether is it available for MAC?
A
no. Kscope is not available for MAC..