How To Install libdasm on CentOS 7

In this tutorial we learn how to install libdasm on CentOS 7. libdasm is Simple x86 disassembly library

Introduction

In this tutorial we learn how to install libdasm on CentOS 7.

What is libdasm

libdasm is a C-library that tries to provide simple and convenient way to disassemble Intel x86 raw op-code bytes (machine code). It can parse and print out op-codes in AT&T and Intel syntax. The op-codes are based on IA-32 Intel Architecture Software Developer’s Manual Volume 2 number 243667, year 2004. Non-Intel instructions are not supported at the moment (also, non-Intel but Intel-compatible CPU extensions, like AMD 3DNow! are not supported).

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

Install libdasm on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libdasm using yum by running the following command:

sudo yum -y install libdasm

Install libdasm on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libdasm

How To Uninstall libdasm on CentOS 7

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

sudo dnf remove libdasm

References

Summary

In this tutorial we learn how to install libdasm on CentOS 7 using yum and dnf.