summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-02-05 00:43:43 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-02-05 00:43:43 -0300
commitc5d7675fa4de40514deda2757cd027bb4870424e (patch)
treed09f395b611d36e88a214ef8b560d967663a415c
parent3fb8e62b798c0dffb201727439a6a0d90bc1b20f (diff)
Script to update cleansystem
It creates an empty root and prints base and base-devel installation onto cleansystem. Run and commit cleansystem after.
-rw-r--r--cleansystem14
-rwxr-xr-xupdate-cleansystem24
2 files changed, 37 insertions, 1 deletions
diff --git a/cleansystem b/cleansystem
index b91bf86..f210416 100644
--- a/cleansystem
+++ b/cleansystem
@@ -6,16 +6,19 @@ bash
binutils
bison
bzip2
+ca-certificates
cloog
coreutils
cracklib
cronie
cryptsetup
+curl
db
dbus-core
device-mapper
dhcpcd
diffutils
+dirmngr
e2fsprogs
expat
fakeroot
@@ -31,8 +34,12 @@ gettext
glib2
glibc
gmp
+gnupg
+gnupg2
+gpgme
grep
groff
+grub
gzip
heirloom-mailx
iana-etc
@@ -44,15 +51,18 @@ isl
jfsutils
kbd
keyutils
+kmod
krb5
less
libarchive
+libassuan
libcap
libfetch
libffi
libgcrypt
libgpg-error
libgssglue
+libksba
libldap
libltdl
libmpc
@@ -60,6 +70,7 @@ libnl
libpcap
libpipeline
libsasl
+libssh2
libtirpc
libtool
libusb
@@ -76,7 +87,6 @@ man-pages
mdadm
mkinitcpio
mkinitcpio-busybox
-module-init-tools
mpfr
nano
ncurses
@@ -89,12 +99,14 @@ pciutils
pcmciautils
pcre
perl
+pinentry
pkg-config
popt
ppl
ppp
procps
psmisc
+pth
readline
reiserfsprogs
run-parts
diff --git a/update-cleansystem b/update-cleansystem
new file mode 100755
index 0000000..d4ad943
--- /dev/null
+++ b/update-cleansystem
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Updates the cleansystem file
+# Creates a fake Parabola root and prints all packages installable from base
+# and base-devel plus extras
+
+set -E
+
+if [ ! -w / ]; then
+ echo "Run as root."
+ exit 1
+fi
+
+tmpdir=/tmp/cleansystem.${RANDOM}
+
+mkdir -p ${tmpdir}/var/lib/pacman
+
+# We sync first because updating info gets printed to stdout too
+pacman -r ${tmpdir} --config /etc/pacman.conf -Sy
+pacman -r ${tmpdir} \
+ --config /etc/pacman.conf \
+ -Sp --print-format "%n" \
+ base base-devel ${@} | sort > $(dirname $0)/cleansystem
+
+exit $?