How To Install blhc on Kali Linux
Introduction
In this tutorial we learn how to install blhc
on Kali Linux.
What is blhc
blhc is:
Perl tool which checks build logs for missing hardening flags. Hardening flags enable additional security features in the compiler to prevent e.g. stack overflows, format string vulnerabilities, GOT overwrites, etc. See e.g. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags.
Because most build systems are quite complicated there are many places where compiler flags from the environment might be ignored. The parser verifies that all compiler commands use the correct hardening flags and thus all hardening features are correctly used.
It’s designed to check build logs generated by Debian’s dpkg-buildpackage (or tools for packaging, using dpkg-buildpackage like pbuilder or the official buildd build logs) to help maintainers detect missing hardening flags in their packages.
Only gcc is detected as compiler at the moment (but other compilers maybe supported).
There are three methods to install blhc
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 blhc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install blhc
using apt-get
by running the following command:
sudo apt-get -y install blhc
Install blhc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install blhc
using apt
by running the following command:
sudo apt -y install blhc
Install blhc 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 update
After updating apt database, We can install blhc
using aptitude
by running the following command:
sudo aptitude -y install blhc
How To Uninstall blhc on Kali Linux
To uninstall only the blhc
package we can use the following command:
sudo apt-get remove blhc
Uninstall blhc And Its Dependencies
To uninstall blhc
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove blhc
Remove blhc Configurations and Data
To remove blhc
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge blhc
Remove blhc configuration, data, and all of its dependencies
We can use the following command to remove blhc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge blhc
Dependencies
blhc have the following dependencies:
References
Summary
In this tutorial we learn how to install blhc
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.