pacman: only install not-installed deps (#1845)

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>
This commit is contained in:
Xeonacid 2023-07-30 05:58:42 +08:00 committed by GitHub
parent 2e11b79797
commit 4fdd72e4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 \

View File

@ -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