Getting the latest radare2

May 9, 2014

Since radare2’s developement is pretty quick, the recommended version is the current git, and not the stable one. At least if you want to play with it in a comfortable way.

You can always install it from your favorite packet manager if you are lazy: we are packaged in a lot of distributions.

Simple way

$ git clone
$ cd radare2
$ ./sys/

And that’s it, radare2 will be

  1. Updated
  2. Compiled
  3. Installed on your system

To update it, just run ./sys/ again.

In a container

Since docker is awesome, here is the receipt to get radare2 inside it, with every bindings.

# using phusion/baseimage as base image. 
FROM phusion/baseimage:0.9.9

# Set correct environment variables.
ENV HOME /root

# Regenerate SSH host keys. baseimage-docker does not contain any
RUN /etc/my_init.d/

# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]

# create code directory
RUN mkdir /opt/code/
# install packages required to compile vala and radare2
RUN apt-get update
RUN apt-get install -y software-properties-common python-all-dev wget
RUN apt-get install -y swig flex bison git gcc g++ make pkg-config glib-2.0
RUN apt-get install -y python-gobject-dev

# compile vala
RUN cd /opt/code; wget; tar -Jxf vala-0.24.0.tar.xz
RUN cd /opt/code/vala-0.24.0; ./configure --prefix=/usr ; make && make install
# compile radare
RUN cd /opt/code; git clone; cd radare2; ./sys/

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*