This repository contains the recipie to build the snap version of radare2 using docker as well to build a standalone docker image with the same build.
The resulting build includes the following projects:
Radare requires snap classic confinement, to install run:
sudo snap install radare2 --classic
Once installed all radare commands are available as:
radare2.<command>
(ex: radare2.rasm2
).
To allow using radare commands without this prefix, it can be solved by using shell aliases. So as an example could be something like this:
alias r2='radare2.r2'
alias r2agent='radare2.r2agent'
alias r2frida-compile='radare2.r2frida-compile'
alias r2p='radare2.r2p'
alias r2pm='radare2.r2pm'
alias r2r='radare2.r2r'
alias rabin2='radare2.rabin2'
alias radiff2='radare2.radiff2'
alias rafind2='radare2.rafind2'
alias ragg2='radare2.ragg2'
alias rahash2='radare2.rahash2'
alias rarun2='radare2.rarun2'
alias rasign2='radare2.rasign2'
alias rasm2='radare2.rasm2'
alias ravc2='radare2.ravc2'
alias rax2='radare2.rax2'
alias sleighc='radare2.sleighc'
alias yara='radare2.yara'
alias yarac='radare2.yarac'
As explained, with the same snap build a docker image is generated.
For documentation on how to use this docker image you can refer to containers section in this respository.