You are not logged in.

#1 2019-02-08 14:34:00

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 49

[SOLVED] PostTrasaction Hook error... "call to execv failed"

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

#2 2019-02-08 14:43:30

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] PostTrasaction Hook error... "call to execv failed"

Try specifying the full path to paccache.

https://bbs.archlinux.org/viewtopic.php?pid=1745379


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#3 2019-02-08 15:02:28

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 49

Re: [SOLVED] PostTrasaction Hook error... "call to execv failed"

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

Board footer

Powered by FluxBB