diff --git a/rootfs/etc/pacman.conf b/rootfs/etc/pacman.conf index 4a79cbd..9b7b455 100644 --- a/rootfs/etc/pacman.conf +++ b/rootfs/etc/pacman.conf @@ -1,5 +1,4 @@ [options] -CacheDir = /tmp/pacman/pkg Architecture = auto SigLevel = Required DatabaseOptional LocalFileSigLevel = Optional diff --git a/rootfs/usr/share/libalpm/hooks/package-cleanup.hook b/rootfs/usr/share/libalpm/hooks/package-cleanup.hook new file mode 100644 index 0000000..e8e28a7 --- /dev/null +++ b/rootfs/usr/share/libalpm/hooks/package-cleanup.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = * + +[Action] +Description = Cleaning up package cache... +Depends = coreutils +When = PostTransaction +Exec = /usr/bin/rm -rf /var/cache/pacman/pkg /var/lib/pacman/sync