Skip to content

Instantly share code, notes, and snippets.

@zachriggle
Last active August 29, 2015 14:06
Show Gist options
  • Save zachriggle/1fd7db23e163d0a0cf00 to your computer and use it in GitHub Desktop.
Save zachriggle/1fd7db23e163d0a0cf00 to your computer and use it in GitHub Desktop.

Debian or Ubuntu

Debian and Ubuntu use dpkg and some related tools to manage dependencies, download source, and build the package.

sudo apt-get update
sudo apt-get install dpkg-dev
sudo apt-get build-dep binutils
apt-get source binutils
cd binutils-*
apply-cool-pwntools-patch
dpkg-buildpackage -us
dpkg -i ../binutils-*.deb

Arch

Arch uses abs, the Arch Build System, to manage dependencies, download source, and build the package.

sudo pacman -Syu
sudo pacman -S abs
sudo pacman -S base-devel
sudo abs binutils
cp -r /var/abs/core/binutils .
cd binutils
makepkg -so
apply-cool-pwntools-patch
makepkg -e
sudo pacman -U binutils*.xz

FreeBSD and OpenBSD

Insert documentation here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment