How To Install crash on Ubuntu 20.04

In this tutorial we learn how to install crash on Ubuntu 20.04. crash is kernel debugging utility, allowing gdb like syntax kernel debugging utility, allowing gdb like syntax

Introduction

In this tutorial we learn how to install crash on Ubuntu 20.04.

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.

Package: crash Architecture: amd64 Version: 7.2.8-1ubuntu1 Priority: optional Section: utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Troy Heber [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 8752 Depends: libc6 (>= 2.29), liblzo2-2 (>= 2.02), libncurses6 (>= 6), libsnappy1v5 (>= 1.1.8), libtinfo6 (>= 6), zlib1g (>= 1:1.2.0), binutils Suggests: kexec-tools, makedumpfile Filename: pool/main/c/crash/crash_7.2.8-1ubuntu1_amd64.deb Size: 2793288 MD5sum: 6997ae9641349a1bb0dd3a1a0ff6c661 SHA1: 7b29406eb815f10cd86a7ab1f5a3e5395c31d8d6 SHA256: b3e6dfe734e70c2ab1e3e66f3de3735415b6b0fbe2011a7d0be74ffa726f5f76 Description-en: kernel debugging utility, allowing gdb like syntax 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 Ubuntu 20.04. 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 update

After updating apt database, We can install crash using apt-get by running the following command:

sudo apt-get -y install crash

Install crash Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install crash using apt by running the following command:

sudo apt -y install crash

Install crash Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install crash using aptitude by running the following command:

sudo aptitude -y install crash

How To Uninstall crash on Ubuntu 20.04

To uninstall only the crash package we can use the following command:

sudo apt-get remove crash

Uninstall crash And Its Dependencies

To uninstall crash and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove crash

Remove crash Configurations and Data

To remove crash configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge crash

Remove 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 crash

References

Summary

In this tutorial we learn how to install crash package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.