How To Install lynis on Kali Linux
Introduction
In this tutorial we learn how to install lynis on Kali Linux.
What is lynis
lynis is:
Lynis is an auditing tool for hardening GNU/Linux and Unix based systems. It scans the system configuration and creates an overview of system information and security issues usable by professional auditors. It can assist in automated audits.
Lynis can be used in addition to other software, like security scanners, system benchmarking and fine-tuning tools.
There are three methods to install lynis 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 lynis Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install lynis using apt-get by running the following command:
sudo apt-get -y install lynisInstall lynis Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install lynis using apt by running the following command:
sudo apt -y install lynisInstall lynis 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 lynis using aptitude by running the following command:
sudo aptitude -y install lynisHow To Uninstall lynis on Kali Linux
To uninstall only the lynis package we can use the following command:
sudo apt-get remove lynisUninstall lynis And Its Dependencies
To uninstall lynis and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove lynisRemove lynis Configurations and Data
To remove lynis configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge lynisRemove lynis configuration, data, and all of its dependencies
We can use the following command to remove lynis configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lynisDependencies
lynis have the following dependencies:
References
Summary
In this tutorial we learn how to install lynis package on Kali Linux using different package management tools: apt, apt-get and aptitude.