Ordering of pacman hooks

By the way, it is possible to use a service for some task that you have as hooks.

For example, for package cache management we have command

paccache-service-manager

that configures how package cache will be cleaned up periodically.