How To Install crash on Kali Linux
Introduction
In this tutorial we learn how to install crash on Kali Linux.
What is crash
crash is:
The core analysis suite is a self-contained tool that can be used to investigate either live systems, or multiple different core dump formats including kdump, LKCD, netdump and diskdump.
o The tool is loosely based on the SVR4 crash command, but has been completely integrated with gdb in order to be able to display formatted kernel data structures, disassemble source code, etc.
o The current set of available commands consist of common kernel core analysis tools such as a context-specific stack traces, source code disassembly, kernel variable displays, memory display, dumps of linked-lists, etc. In addition, any gdb command may be entered, which in turn will be passed onto the gdb module for execution.
o There are several commands that delve deeper into specific kernel subsystems, which also serve as templates for kernel developers to create new commands for analysis of a specific area of interest. Adding a new command is a simple affair, and a quick recompile adds it to the command menu.
o The intent is to make the tool independent of Linux version dependencies, building in recognition of major kernel code changes so as to adapt to new kernel versions, while maintaining backwards compatibility.
There are three methods to install crash 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 crash Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install crash using apt-get by running the following command:
sudo apt-get -y install crashInstall crash Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install crash using apt by running the following command:
sudo apt -y install crashInstall crash 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 crash using aptitude by running the following command:
sudo aptitude -y install crashHow To Uninstall crash on Kali Linux
To uninstall only the crash package we can use the following command:
sudo apt-get remove crashUninstall crash And Its Dependencies
To uninstall crash and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove crashRemove crash Configurations and Data
To remove crash configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge crashRemove crash configuration, data, and all of its dependencies
We can use the following command to remove crash configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge crashDependencies
crash have the following dependencies:
References
Summary
In this tutorial we learn how to install crash package on Kali Linux using different package management tools: apt, apt-get and aptitude.