Skip to content

Instantly share code, notes, and snippets.

@niklaskeerl
Last active March 15, 2026 01:39
Show Gist options
  • Select an option

  • Save niklaskeerl/fc26dd02e204eb685fe5b06a89a9ceda to your computer and use it in GitHub Desktop.

Select an option

Save niklaskeerl/fc26dd02e204eb685fe5b06a89a9ceda to your computer and use it in GitHub Desktop.
Install pwndbg and gdb on arch linux

How to install pwndbg and gdb on arch linux

sudo pacman -S gdb
sudo pacman -S pwndbg
echo 'source /usr/share/pwndbg/gdbinit.py' >> ~/.gdbinit

If you are getting the following error "Cannot find Pwndbg virtualenv directory: /usr/share/pwndbg/.venv: please re-run setup.sh", do the following steps, otherwise ignore:

Creating the venv: python -m venv /usr/share/pwndbg/.venv

Activating the venv: source /usr/share/pwndbg/.venv/bin/activate

Install the missing packages: pip install pwndbg pwnlib pyelftools psutil typing_extensions pwntools tabulate

@patryk4815
Copy link

Just use: https://archlinux.org/packages/extra/any/pwndbg/

$ pacman -S pwndbg
$ pwndbg

No need for .gdbinit modification

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