You are not logged in.
So I am trying to run 'paccache -rvk2' as a PostTransaction Hook and can't figure out what I am doing wrong...
Here is my remove_old_cache.hook
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Pruning package cache...
When = PostTransaction
Exec = paccache -rvk2
I get this error message:
(4/6) Pruning package cache...
call to execv failed (No such file or directory)
error: command failed to execute correctly
Any ideas?
Last edited by bashM0nk3y (2019-02-08 15:02:43)
Offline
Try specifying the full path to paccache.
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
Offline
There were no packages to upgrade so I changed my .hook (with full path name to paccache) and removed a small package to test it.
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Pruning package cache...
When = PostTransaction
Exec = /usr/bin/paccache -rk2
It works as expected now.
Thanks for the help!
Offline