mirror of
https://github.com/luzifer-docker/archlinux.git
synced 2024-12-20 11:01:23 +00:00
Cleanup the package cache after install or upgrade
This commit is contained in:
parent
f5bf444d43
commit
601fcd2526
2 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
[options]
|
||||
CacheDir = /tmp/pacman/pkg
|
||||
Architecture = auto
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
|
|
11
rootfs/usr/share/libalpm/hooks/package-cleanup.hook
Normal file
11
rootfs/usr/share/libalpm/hooks/package-cleanup.hook
Normal file
|
@ -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
|
Loading…
Reference in a new issue