How To Install radare2 on CentOS 8

radare2 is The reverse engineering framework

Introduction

In this tutorial we learn how to install radare2 on CentOS 8.

What is radare2

The radare2 is a reverse-engineering framework that is multi-architecture, multi-platform, and highly scriptable. Radare2 provides a hexadecimal editor, wrapped I/O, file system support, debugger support, diffing between two functions or binaries, and code analysis at opcode, basic block, and function levels.

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

Install radare2 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 radare2 using dnf by running the following command:

sudo dnf -y install radare2

Install radare2 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 radare2 using yum by running the following command:

sudo yum -y install radare2

How To Uninstall radare2 on CentOS 8

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

sudo dnf remove radare2

radare2 Package Contents on CentOS 8

/usr/bin/r2
/usr/bin/r2agent
/usr/bin/r2pm
/usr/bin/rabin2
/usr/bin/radare2
/usr/bin/radiff2
/usr/bin/rafind2
/usr/bin/ragg2
/usr/bin/rahash2
/usr/bin/rarun2
/usr/bin/rasign2
/usr/bin/rasm2
/usr/bin/rax2
/usr/bin/rvc2
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/a2f662af34d276db5ecb3875655d378ac61e70
/usr/lib/.build-id/03
/usr/lib/.build-id/03/19593eb8599ac4134b48f2e279568ef46ccf7b
/usr/lib/.build-id/07
/usr/lib/.build-id/07/1053a8eec14043df355e5c50c248edd6fc52cf
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/b58fc3fc350a5d0ff74fd7833a54c2efb8b214
/usr/lib/.build-id/13
/usr/lib/.build-id/13/24ca2b8b65add8c3b1d04a7af5b344bd32e5f4
/usr/lib/.build-id/14
/usr/lib/.build-id/14/a927c13bb5a74103f4856858e4edaf410b89fa
/usr/lib/.build-id/19
/usr/lib/.build-id/19/5cc64ff855abbeee509a486c8085d032132561
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/cd04c4dd6bc702ff3f9078d2ab678d0b7c8194
/usr/lib/.build-id/20
/usr/lib/.build-id/20/ffa5891142bf4980c249a3856d2e143d61418d
/usr/lib/.build-id/28
/usr/lib/.build-id/28/d77584eb9816917f20ce117f8de4c714658fd3
/usr/lib/.build-id/33
/usr/lib/.build-id/33/46eaa23ab5ef9a540b7829ec02e69c81881e17
/usr/lib/.build-id/37
/usr/lib/.build-id/37/4f03d3804c0c5c4ae7dec9806d89c1e144c408
/usr/lib/.build-id/39
/usr/lib/.build-id/39/19aa188f6691a7b8d34a1c9ea144d75a6773dd
/usr/lib/.build-id/50
/usr/lib/.build-id/50/b41dfccb18192d066e2a875d47ac17d97c8565
/usr/lib/.build-id/51
/usr/lib/.build-id/51/2223b7a6d99402b0a7ec9ebcf211539d7b6122
/usr/lib/.build-id/58
/usr/lib/.build-id/58/9b5981d931493d78c1991a463bcd8e0a750901
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/4fb2db9d1d57e4e702cd946984671f1e584700
/usr/lib/.build-id/72
/usr/lib/.build-id/72/6f15e2a11bd475b94a7804807cff28092181a7
/usr/lib/.build-id/74
/usr/lib/.build-id/74/0eeddbedb3e5ad022c0a960a1cf4e5920b4809
/usr/lib/.build-id/74/74ace0f402a4f8f3623d7a1c0ec040f0c922c1
/usr/lib/.build-id/77
/usr/lib/.build-id/77/5c430788abfe3a2acfc425dad51da19ddeea5e
/usr/lib/.build-id/77/de52453119e9815674ddc859e92eb724931408
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/0511ebdc02356e42127484d552c7a5acc88bf2
/usr/lib/.build-id/7e/b96a8e12a3b3e5d6d17547d384f0936080984e
/usr/lib/.build-id/82
/usr/lib/.build-id/82/0ab60d4be067e210d0557c7c1f5918d96438f2
/usr/lib/.build-id/84
/usr/lib/.build-id/84/f25db5036643f3233b01b3a61051aab284077c
/usr/lib/.build-id/88
/usr/lib/.build-id/88/eb255a7432da1dafb57bce23204fba0181fcef
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/64dbf3233c70dc21f05b853ed22fbe1261e234
/usr/lib/.build-id/97
/usr/lib/.build-id/97/959095ba42085ad46ca4372ea256b8705b5071
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/63b276ccdae6ebe86ee02ce76918ecc784eaa7
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/22844494ddac681df36d93849c2e76c61c80f8
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/93cdb9ff1a4c3879461d7d5eb8a1e7e6aa9451
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/6ca14087354b6cd4814ef5b51f30352bdb9d6a
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/a1cfef50fa32861925a3190bebbde8f664395b
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/d4b73653684b9bcef06f524776ba25593cfda0
/usr/lib64/libr_anal.so.5.3.1
/usr/lib64/libr_asm.so.5.3.1
/usr/lib64/libr_bin.so.5.3.1
/usr/lib64/libr_bp.so.5.3.1
/usr/lib64/libr_config.so.5.3.1
/usr/lib64/libr_cons.so.5.3.1
/usr/lib64/libr_core.so.5.3.1
/usr/lib64/libr_crypto.so.5.3.1
/usr/lib64/libr_debug.so.5.3.1
/usr/lib64/libr_egg.so.5.3.1
/usr/lib64/libr_flag.so.5.3.1
/usr/lib64/libr_fs.so.5.3.1
/usr/lib64/libr_hash.so.5.3.1
/usr/lib64/libr_io.so.5.3.1
/usr/lib64/libr_lang.so.5.3.1
/usr/lib64/libr_magic.so.5.3.1
/usr/lib64/libr_main.so.5.3.1
/usr/lib64/libr_parse.so.5.3.1
/usr/lib64/libr_reg.so.5.3.1
/usr/lib64/libr_search.so.5.3.1
/usr/lib64/libr_socket.so.5.3.1
/usr/lib64/libr_syscall.so.5.3.1
/usr/lib64/libr_util.so.5.3.1
/usr/lib64/radare2
/usr/lib64/radare2/5.3.1
/usr/share/doc/radare2
/usr/share/doc/radare2/3D
/usr/share/doc/radare2/3D/3D-logo.r2
/usr/share/doc/radare2/3D/3D-pyramid.r2
/usr/share/doc/radare2/3D/3D-square.r2
/usr/share/doc/radare2/3D/Makefile
/usr/share/doc/radare2/3D/pyramid
/usr/share/doc/radare2/CONTRIBUTING.md
/usr/share/doc/radare2/DEVELOPERS.md
/usr/share/doc/radare2/README.md
/usr/share/doc/radare2/avr.md
/usr/share/doc/radare2/brainfuck.md
/usr/share/doc/radare2/calling-conventions.md
/usr/share/doc/radare2/debug.md
/usr/share/doc/radare2/esil.md
/usr/share/doc/radare2/fortunes.tips
/usr/share/doc/radare2/gdb.md
/usr/share/doc/radare2/gprobe.md
/usr/share/doc/radare2/intro.md
/usr/share/doc/radare2/io.md
/usr/share/doc/radare2/node.js
/usr/share/doc/radare2/node.js/Makefile
/usr/share/doc/radare2/node.js/README.md
/usr/share/doc/radare2/node.js/index.js
/usr/share/doc/radare2/node.js/package.json
/usr/share/doc/radare2/pdb
/usr/share/doc/radare2/pdb/index.js
/usr/share/doc/radare2/pdb/package.json
/usr/share/doc/radare2/pdb/pdb_usage.md
/usr/share/doc/radare2/rap.md
/usr/share/doc/radare2/sandbox
/usr/share/doc/radare2/sandbox/Makefile
/usr/share/doc/radare2/sandbox/README.md
/usr/share/doc/radare2/sandbox/rabin2.sb
/usr/share/doc/radare2/sandbox/radare2.sb
/usr/share/doc/radare2/siol.md
/usr/share/doc/radare2/strings.md
/usr/share/doc/radare2/windbg.md
/usr/share/doc/radare2/yara.md
/usr/share/licenses/radare2
/usr/share/licenses/radare2/COPYING
/usr/share/licenses/radare2/COPYING.LESSER
/usr/share/man/man1/r2-docker.1.gz
/usr/share/man/man1/r2agent.1.gz
/usr/share/man/man1/r2pm.1.gz
/usr/share/man/man1/rabin2.1.gz
/usr/share/man/man1/radare2.1.gz
/usr/share/man/man1/radiff2.1.gz
/usr/share/man/man1/rafind2.1.gz
/usr/share/man/man1/ragg2.1.gz
/usr/share/man/man1/rahash2.1.gz
/usr/share/man/man1/rarun2.1.gz
/usr/share/man/man1/rasm2.1.gz
/usr/share/man/man1/rax2.1.gz
/usr/share/man/man1/rvc2.1.gz
/usr/share/man/man7/esil.7.gz
/usr/share/radare2/5.3.1/www
/usr/share/radare2/5.3.1/www/README.Fedora
/usr/share/zsh/site-functions/_r2
/usr/share/zsh/site-functions/_rabin2
/usr/share/zsh/site-functions/_radiff2
/usr/share/zsh/site-functions/_rafind2
/usr/share/zsh/site-functions/_ragg2
/usr/share/zsh/site-functions/_rahash2
/usr/share/zsh/site-functions/_rasm2
/usr/share/zsh/site-functions/_rax2

References

Summary

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