summaryrefslogtreecommitdiff
path: root/unsorted/archauto/clean.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-12-13 15:07:54 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-12-13 15:07:54 +0100
commit1d89ad1c02fd26642106783e2ebf9fa6858d5157 (patch)
treefcb8b8233cdbbc36d6315131853cc108797d96d8 /unsorted/archauto/clean.sh
parentbd716eb2737a7bb9de4a595319fa37efddd1b58d (diff)
downloadbiruda-1d89ad1c02fd26642106783e2ebf9fa6858d5157.tar.gz
biruda-1d89ad1c02fd26642106783e2ebf9fa6858d5157.tar.bz2
added automatic archlinux installation (unsorted)
Diffstat (limited to 'unsorted/archauto/clean.sh')
-rw-r--r--unsorted/archauto/clean.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/unsorted/archauto/clean.sh b/unsorted/archauto/clean.sh
new file mode 100644
index 0000000..27dac5f
--- /dev/null
+++ b/unsorted/archauto/clean.sh
@@ -0,0 +1,30 @@
+# This can be done in cfengine as rule as "must-be-absent" packages
+
+# pacstrap ${MOUNT_PATH} base
+# leaves us with 111 packages, 715 MB
+
+# 173M package cache, not needed, /var/cache/pacman/pkg/
+pacman --noconfirm -Scc
+rm -rf /var/cache/pacman/pkg/*.tar.xz
+
+# note, those things may be needed, I personally don't need them.
+pacman --noconfirm -Rs \
+ man-pages libpipeline groff man-db \
+ jfsutils reiserfsprogs xfsprogs \
+ cryptsetup lvm2
+
+# TODOS:
+
+# big dirs
+#
+# 72612 /usr/lib/python2.7 (libvirt again)
+#
+# locales, we don't need them on a server
+# 48208 ./locale
+# problematic, as we remove files belonging to a package
+#
+# non-modular compiler with only drivers/firmware needed could be an
+# idea here:
+# 49240 ./usr/lib/modules/3.7.9-1-ARCH
+# 33620 ./usr/lib/modules/3.7.9-1-ARCH/kernel/drivers
+# 47184 ./usr/lib/firmware