How To Install will-crash on CentOS 8

will-crash is Set of crashing executables written in various languages

Introduction

In this tutorial we learn how to install will-crash on CentOS 8.

What is will-crash

The main purpose of this project is to provide sample executables for testing crash/exception handling tools like ABRT.

We can use yum or dnf to install will-crash on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install will-crash.

Install will-crash on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install will-crash using dnf by running the following command:

sudo dnf -y install will-crash

Install will-crash on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install will-crash

How To Uninstall will-crash on CentOS 8

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

sudo dnf remove will-crash

will-crash Package Contents on CentOS 8

/usr/bin/will_abort
/usr/bin/will_cpp_segfault
/usr/bin/will_java_segfault
/usr/bin/will_java_throw
/usr/bin/will_java_throw_remote
/usr/bin/will_java_throw_suppressed
/usr/bin/will_oops
/usr/bin/will_python3_raise
/usr/bin/will_python3_sigsegv
/usr/bin/will_ruby_raise
/usr/bin/will_segfault
/usr/bin/will_segfault_in_new_pid
/usr/bin/will_segfault_threads
/usr/bin/will_stackoverflow
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/58ad111da436dc6255982a8bca1e137659f6f9
/usr/lib/.build-id/50
/usr/lib/.build-id/50/84ac394a7d667143df8882312cab39a0b3019b
/usr/lib/.build-id/50/d2b2e263f8d15c397199af5ec34285c976238f
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/397b6a49e9d6c66f7cdb3b6640b318b6bbf908
/usr/lib/.build-id/63
/usr/lib/.build-id/63/68db41133ca9ffa47c79f1770f9acffb109d2e
/usr/lib/.build-id/63/f7f4d9c92c4b6551b9869ffb45a8667f57c464
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/61293da33144112372ce30df22b0754d6932f0
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/0275d3b7468fc8ba8b9df90ac69838433c3a16
/usr/lib64/libwillcrash.so
/usr/lib64/libwillcrash.so.0
/usr/lib64/libwillcrash.so.0.0.0
/usr/lib64/libwilljavasegfault.so
/usr/lib64/libwilljavasegfault.so.0
/usr/lib64/libwilljavasegfault.so.0.0.0
/usr/share/doc/will-crash
/usr/share/doc/will-crash/AUTHORS
/usr/share/doc/will-crash/LICENSE
/usr/share/doc/will-crash/README.rst
/usr/share/java/WillRaiseSigSegv.class
/usr/share/java/willcrash
/usr/share/java/willcrash/willremoteloader.jar
/usr/share/java/willcrash/willsuppressed.jar
/usr/share/java/willcrash/willuncaught.jar
/usr/share/ruby/vendor_ruby/will_crash.rb
/usr/share/will-crash/will_oops_kmod
/usr/share/will-crash/will_oops_kmod/Makefile
/usr/share/will-crash/will_oops_kmod/will_oops.c

References

Summary

In this tutorial we learn how to install will-crash on CentOS 8 using yum and dnf.