You are not logged in.
I'd consider myself fairly new to linux, but especially to arch. after trying to update packages with `sudo pacman -Syu`, the package manager returns an error that it cannot open a directory to `hooks/`. I've never messed with anything associated with pacman, so I'm just confused why the directory isn't there to begin with.
as a seemingly important note:
I do have a file titled `hooks` in the directory `etc/pacman.d` which is populated, but no folder.
Last edited by Bqyden (2024-02-11 13:35:25)
Offline
I do have a file titled `hooks` in the directory `etc/pacman.d` which is populated, but no folder.
And why is that there?
stat /etc/pacman.d/hooks # the creation date might tell you something
pacman -Qo /etc/pacman.d/hooks # this better be "no package owns this nonsense"
Offline
ah, thank you!
`stat` says the birth date is 02-05, just a couple days after I first installed arch
`pacman -Qo /etc/pacman.d/hooks` thankfully does return that no packages own the file
Offline
Ok, simply remove it.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
alright, I will delete the file. but what about the missing directory? should I make the folder myself? will pacman recognize it's missing and make a new one?
Offline
You're not missing anything there - packages will put hooks into /usr/share/libalpm/hooks
If you want to add your own hooks to /etc (or shadow repo hooks there, no idea whether that works, though), you'll of course have to create the directory, yes.
Offline
If you want to add your own hooks to /etc (or shadow repo hooks there, no idea whether that works, though).
It does at least for overriding. Not tested sym-linking to /dev/null.
Offline