Skip to content

Instantly share code, notes, and snippets.

@kanazux
Last active January 16, 2020 22:33
Show Gist options
  • Save kanazux/f7e87775798a217c7e19b6bff7d3d96c to your computer and use it in GitHub Desktop.
Save kanazux/f7e87775798a217c7e19b6bff7d3d96c to your computer and use it in GitHub Desktop.
Install radare2 on fedora
#!/bin/sh
#
# Install radare2 on fedora
# All tks to my friend Neriberto (@neriberto)[https://github.com/neriberto]
#
R2_VERSION=master
# R2pipe python version
R2_PIPE_PY_VERSION=0.8.9
# R2pipe node version
R2_PIPE_NPM_VERSION=2.3.2
mkdir -p ~/radare_install && cd ~/radare_install
dpkg --add-architecture i386 && \
dnf update && \
dnf install -y \
curl \
gcc \
git \
bison \
pkg-config \
make \
glib \
npm \
glibc \
ncurses-devel \
libstdc++ \
gnupg2 \
sudo && \
dnf install -y nodejs python-pip && \
pip install r2pipe=="$R2_PIPE_PY_VERSION" && \
npm install --unsafe-perm -g "r2pipe@$R2_PIPE_NPM_VERSION" && \
cd /mnt && \
git clone -b "$R2_VERSION" --depth 1 https://github.com/radare/radare2.git && \
cd radare2 && \
./sys/install.sh && \
make install && \
dnf install -y ghc-lzma-conduit && \
dnf remove -y \
bison \
glib && \
dnf autoremove -y && \
dnf clean all && rm -rf /tmp/* /var/tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment