From 4fdd72e4f6c7f73892388fd508c45fa3b4fa4f11 Mon Sep 17 00:00:00 2001 From: Xeonacid Date: Sun, 30 Jul 2023 05:58:42 +0800 Subject: [PATCH] pacman: only install not-installed deps (#1845) Signed-off-by: Xeonacid --- setup-dev.sh | 2 +- setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-dev.sh b/setup-dev.sh index ed7c24e15..5d02ab8a7 100755 --- a/setup-dev.sh +++ b/setup-dev.sh @@ -125,7 +125,7 @@ Include = /etc/pacman.d/mirrorlist EOF sudo pacman -Syu --noconfirm || true - sudo pacman -S --noconfirm \ + sudo pacman -S --needed --noconfirm \ nasm \ gcc \ glibc-debug \ diff --git a/setup.sh b/setup.sh index a4b4fa1c5..c69371f6d 100755 --- a/setup.sh +++ b/setup.sh @@ -62,7 +62,7 @@ install_emerge() { install_pacman() { sudo pacman -Syy --noconfirm || true - sudo pacman -S --noconfirm git gdb python python-pip python-capstone python-unicorn python-pycparser python-psutil python-ptrace python-pyelftools python-six python-pygments which debuginfod + sudo pacman -S --needed --noconfirm git gdb python python-pip python-capstone python-unicorn python-pycparser python-psutil python-ptrace python-pyelftools python-six python-pygments which debuginfod if ! grep -q "^set debuginfod enabled on" ~/.gdbinit; then echo "set debuginfod enabled on" >> ~/.gdbinit fi