How To Install git-sizer on Kali Linux
Introduction
In this tutorial we learn how to install git-sizer on Kali Linux.
What is git-sizer
git-sizer is:
git-sizer computes various size metrics for a Git repository, flagging those that might cause problems or inconvenience. For example:
?? Is the repository too big overall? ?? Does the repository have too many references (branches and/or tags)? ?? Does the repository include too many objects? ?? Does the repository include gigantic blobs (files)? ?? Does the repository include many slightly different large text files? ?? Does the repository include gigantic trees (directories)? ?? Does the repository have many identical files? ?? Does the repository include absurdly long path names? ?? Are there other bizarre and questionable things in the repository? ?? Annotated tags pointing at one another in long chains? ?? Octopus merges with dozens of parents? ?? Commits with gigantic log messages?
git-sizer can help to reveal the problems described above.
There are three methods to install git-sizer on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install git-sizer Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install git-sizer using apt-get by running the following command:
sudo apt-get -y install git-sizerInstall git-sizer Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install git-sizer using apt by running the following command:
sudo apt -y install git-sizerInstall git-sizer Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install git-sizer using aptitude by running the following command:
sudo aptitude -y install git-sizerHow To Uninstall git-sizer on Kali Linux
To uninstall only the git-sizer package we can use the following command:
sudo apt-get remove git-sizerUninstall git-sizer And Its Dependencies
To uninstall git-sizer and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove git-sizerRemove git-sizer Configurations and Data
To remove git-sizer configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge git-sizerRemove git-sizer configuration, data, and all of its dependencies
We can use the following command to remove git-sizer configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge git-sizerDependencies
git-sizer have the following dependencies:
References
Summary
In this tutorial we learn how to install git-sizer package on Kali Linux using different package management tools: apt, apt-get and aptitude.