Add Arch Linux support to setup.sh (#1334)

pull/1352/head
tuxfobux 3 years ago committed by GitHub
parent b571a5fc6f
commit df1d7f2256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -322,6 +322,8 @@ E.g. on Ubuntu/Debian you might need to do the following steps (for 64-bit and 3
sudo apt-get install libc6-dbg
sudo dpkg --add-architecture i386
sudo apt-get install libc-dbg:i386
If you used setup.sh on Arch based distro you'll need to do a power cycle or set environment variable manually like this: export DEBUGINFOD_URLS=https://debuginfod.archlinux.org
"""
)
w(

@ -60,6 +60,12 @@ install_emerge() {
emerge --oneshot --deep --newuse --changed-use --changed-deps dev-lang/python dev-python/pip sys-devel/gdb
}
install_pacman() {
sudo pacman -Syy || true
sudo pacman -S gdb python python-capstone python-unicorn python-pycparser python-psutil python-ptrace python-pyelftools python-six python-future python-pygments which debuginfod
echo "set debuginfod enabled on" >> ~/.gdbinit
}
PYTHON=''
INSTALLFLAGS=''
@ -85,24 +91,10 @@ if linux; then
"opensuse-leap")
install_zypper
;;
"arch")
echo "Install Arch linux using a community package. See:"
echo " - https://www.archlinux.org/packages/community/any/pwndbg/"
echo " - https://aur.archlinux.org/packages/pwndbg-git/"
exit 1
;;
"endeavouros")
echo "Install pwndbg using a community package. See:"
echo " - https://www.archlinux.org/packages/community/any/pwndbg/"
echo " - https://aur.archlinux.org/packages/pwndbg-git/"
exit 1
;;
"manjaro")
echo "Pwndbg is not available on Manjaro's repositories."
echo "But it can be installed using Arch's AUR community package. See:"
echo " - https://www.archlinux.org/packages/community/any/pwndbg/"
echo " - https://aur.archlinux.org/packages/pwndbg-git/"
exit 1
"arch" | "endeavouros" | "manjaro" )
install_pacman
echo "Logging off and in or conducting a power cycle is required to get debuginfod to work."
echo "Alternatively you can manually set the environment variable: DEBUGINFOD_URLS=https://debuginfod.archlinux.org"
;;
"void")
install_xbps

Loading…
Cancel
Save