I found that apparently, pamac, in contrast to yay, for example, does not seem to permanently cache packages downloaded and built from AUR.
There is a pamac cache under /tmp/pamac/aur-[your-user] but as it is under /tmp, it will be deleted on each reboot.
Is it possible to configure pamac in a way that it stores the built installation packages permanently, like yay does?
Oh. heh. It does now ‘attempt sudo while saving’ if you do that.
*the more you know*
(still prefer sudoedit so we dont have to guess editors or change docs … and it also does things in temporary files then applies changes, and has niceties for policies and links)
Thank you very much for this confirmation. I already have this setting in my /etc/pamac.conf.
Pamac then creates a subdirectory pamac-build-[username] and builds the packages there.
Unfortunately, the packages (*.pkg.tar.xz or *.pkg.tar.zst files) seem to be deleted from that folder after being installed successfully.
The setting
## Number of versions of each package to keep in the cache:
KeepNumPackages = 3
in /etc/pamac.conf does not seem to apply to AUR packages but packages from the official repository only.
That is a pity as it prevents downgrading to earlier versions as it would be possible for packages installed with pacman or yay.
In particular, for packages retrieved from AUR and built from sources, it sometimes may be useful to downgrade to a previous version known to be working.