From 1d9826a005e247d5ecb31574bc935e4cb7a1eb7d Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 18 Oct 2022 12:34:36 -0400 Subject: reset_pacman_chroot.sh: add base-devel --- build_tools/bin/reset_pacman_chroot.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build_tools/bin/reset_pacman_chroot.sh b/build_tools/bin/reset_pacman_chroot.sh index cde1f69..802665b 100755 --- a/build_tools/bin/reset_pacman_chroot.sh +++ b/build_tools/bin/reset_pacman_chroot.sh @@ -1,14 +1,21 @@ #!/bin/bash -echo "Removing all but base..." +echo "Removing all but base & base-devel..." #pacman -R $(comm -23 <(pacman -Qq | sort) <((for i in $(pacman -Qqg base); do pactree -ul "$i"; done) | sort -u)) #pacman -R $(comm -23 <(pacman -Qq | sort) <(( pacman -Qq | sort > /tmp/allInstalled.reset rm /tmp/baseDeps.reset -for i in $(pacman -Qqg base) + +for i in $(pacman -Qqg base base-devel) do pactree -ul "$i" >> /tmp/baseDeps.reset done + +for i in pacman glibc pacman-contrib +do + echo "$i" >> /tmp/baseDeps.reset +done + sort -u /tmp/baseDeps.reset > /tmp/baseDepsSorted.reset removePkgs="$(comm -23 /tmp/allInstalled.reset /tmp/baseDepsSorted.reset)" -- cgit v0.12