How to Install GRV Tool on Ubuntu 16.04

To Install GRV Tool on Ubuntu 16.04

GRV is an open-source tool to display git repository on Linux terminal. This tool provides screens to view refs, branches, and diffs in separate tabs. In order to filter refs and commits, you can use query language. GRV Tool is packed with so much of features and some of them are listed below.

Features of GRV

  • In vi editor keybindings is in default and can' t be customized but in this case, keybindings can be customized.
  • Themes can be customized. Currently, it has 3 built-in themes are available solarized, classic & cool.


Installing GRV

Before downloading GRV file & main GRV executable file, make sure that cmake is installed in your system. If not, you can run the following command for the same purpose.

root@linuxhelp:~# apt-get install cmake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  cmake-data libjsoncpp1
Suggested packages:
  codeblocks eclipse ninja-build
The following NEW packages will be installed:
  cmake cmake-data libjsoncpp1
0 upgraded, 3 newly installed, 0 to remove and 629 not upgraded.
Need to get 3,817 kB of archives.
After this operation, 20.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
.
.
Setting up cmake-data (3.5.1-1ubuntu3) ...
Setting up libjsoncpp1:amd64 (1.7.2-1) ...
Setting up cmake (3.5.1-1ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...


For installing cmake, you need to need to install Git as it is very much required for installing GRV tool.

root@linuxhelp:~# apt install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 629 not upgraded.
Need to get 3,857 kB of archives.
.
.
Processing triggers for man-db (2.7.5-1) ...
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1.3) ...
Setting up git (1:2.7.4-0ubuntu1.3) ...

And now, you can install GRV tool from git by making use of the following command.

root@linuxhelp:~# git clone https://github.com/rgburke/grv.git
Cloning into ' grv' ...
remote: Counting objects: 1917, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 1917 (delta 23), reused 38 (delta 18), pack-reused 1860
Receiving objects: 100% (1917/1917), 4.71 MiB | 719.00 KiB/s, done.
Resolving deltas: 100% (1310/1310), done.
Checking connectivity... done.


After cloning is done, just move to the grv directory by making use of the following command.

root@linuxhelp:~# cd grv/


Download GRV executable file by using wget command in the following manner.

root@linuxhelp:~/grv# wget -O grv https://github.com/rgburke/grv/releases/download/v0.1.0/grv_v0.1.0_linux64
--2018-02-24 19:43:45--  https://github.com/rgburke/grv/releases/download/v0.1.0/grv_v0.1.0_linux64
Resolving github.com (github.com)... 52.74.223.119, 13.229.188.59, 13.250.177.223
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/102900463/7c9b9d38-05fa-11e8-91a3-d707f8e4fade?X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180224%2Fus-east-1%2Fs3%2Faws4_request& X-Amz-Date=20180224T141400Z& X-Amz-Expires=300& X-Amz-Signature=364eca3ad48337f3f3df7739f0c5baae2d46f03dda6677ea496aaca6c2c764a5& X-Amz-SignedHeaders=host& actor_id=0& response-content-disposition=attachment%3B%20filename%3Dgrv_v0.1.0_linux64& response-content-type=application%2Foctet-stream [following]
.
.
HTTP request sent, awaiting response... 200 OK
Length: 16657792 (16M) [application/octet-stream]
Saving to: ‘ grv’ 

grv                               100%[==========================================================> ]  15.89M   169KB/s    in 54s     

2018-02-24 19:44:41 (303 KB/s) - ‘ grv’  saved [16657792/16657792]

Once it is done, you need to give the permission to it for execution.

root@linuxhelp:~/grv# chmod +x ./grv 


Now the GRV is granted for the execution.

root@linuxhelp:~/grv# ./grv

The GRV tool looks like the one in the above image. With this, the method to install GRV tool comes to an end.

FAQ
Q
What is a dependency build libgit2 for GRV tool?
A
For the installation of dependency build libgit2 for GRV tool, use the following command as given below, "sudo apt-get install cmake"
Q
What is a GRV tool?
A
GRV is an opensource tool to display git repository on Linux terminal. This tool provides screens to view refs, branches and diffs in separate tabs. The behaviour and style can be customized through configuration. A query language can be used to filter refs and commits.
Q
What are the alternative tools available for the GRV tool?
A
Get the alternative tools for the GRV tool, use the following link as given below "http://gitlist.org/"
Q
What are the features available in the GRV tool?
A
Have UI that allows monitoring repository changes
Custom tabs and splits can be created to view Ref, Commit, Diff, Git status.
In vi editor keybindings is in default and can't be customized but in this case, keybindings can be customized.
Themes can be customized. Currently, it has 3 built-in themes are availably solarized, classic & cool.
We can use any hex colors which are comfortable for us and GRV supports 256 colors.
A query language can be used to filter commit and refs.
Q
How to get the Github repository of the GRV tool?
A
Get the Github repository of the GRV tool, use the following link as given below "https://github.com/rgburke/grv"