summaryrefslogtreecommitdiffstats
path: root/build_tools/bin
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2022-10-18 16:34:36 (GMT)
committerBritney Fransen <brfransen@gmail.com>2022-10-18 16:34:36 (GMT)
commit1d9826a005e247d5ecb31574bc935e4cb7a1eb7d (patch)
tree3f69cfa06cdb7238d7488cbd1f1b82ecdbe8a44b /build_tools/bin
parent3100fef5b6dac8baf616dd21c87bf10fb43763e8 (diff)
downloadlinhes_dev-1d9826a005e247d5ecb31574bc935e4cb7a1eb7d.zip
reset_pacman_chroot.sh: add base-devel
Diffstat (limited to 'build_tools/bin')
-rwxr-xr-xbuild_tools/bin/reset_pacman_chroot.sh11
1 files 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)"