Package Details: pacman-cleanup-hook 1.0-7

Git Clone URL: (read-only, click to copy)
Package Base: pacman-cleanup-hook
Description: Pacman hook to cleanup pacman cache, keeps only the latest cache and the currently installed package. No configuration necessary, just install it.
Upstream URL: None
Keywords: cleanup paccache pacman
Submitter: KopfKrieg
Maintainer: KopfKrieg
Last Packager: KopfKrieg
Votes: 36
Popularity: 4.35
First Submitted: 2017-06-30 14:34
Last Updated: 2020-02-29 13:52

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

abdulhakeem commented on 2019-11-09 13:45

@KopfKrieg ah that makes sense, no worries, thanks anyway!

KopfKrieg commented on 2019-11-09 06:01

@abdulhakeem: AUR helper caches are usually within the user's home directory, while pacman hooks work with root permissions. I don't think this is a good idea, and I'm not even sure how to implement it. Sorry.

abdulhakeem commented on 2019-11-08 15:18

Can you also make it clean AUR helper caches? like yay for example

Xorg commented on 2018-08-10 21:58

@KopfKrieg: I'm glad to help. :)

KopfKrieg commented on 2018-08-10 13:38

@Xorg: Thank you, I've updated the PKGBUILD according to your comment. It's always nice to learn simpler ways :)

Xorg commented on 2018-08-10 12:16

@KopfKrieg: Thank you.

PS: To avoid mistake (like in pkgrel 3, fixed in pkgrel 4), you can simplify your mkdir/cp/chmod with this all-in-one command: install -D -m0644 "${srcdir}/cleanup.hook" "${pkgdir}/usr/share/libalpm/hooks/cleanup.hook" ('chown root:root' is not required: root becomes the owner on package's installation) ;)

KopfKrieg commented on 2018-08-08 15:16

@Xorg: Thanks for the suggestion, I've updated the PKGBUILD

Xorg commented on 2018-08-04 14:20


I think you should place the hook into /usr/share/libalpm/hooks rather than /etc/pacman.d/hooks to allow user overrides.

KopfKrieg commented on 2018-05-29 17:06

Updated, thanks for noticing :)

BrLi commented on 2018-05-29 16:08

paccache is now in package pacman-contrib, please change the dependency. Thx.