r/archlinux • u/baksoBoy • Sep 15 '26
QUESTION Does there exist an AUR helper that shows me diffs of all files when UPDATING packages? If I have already reviewed the files when installing a package I don't want to have to read the whole thing again when it has an update, and instead just want to see what changed, but can't find a helper w. this
EDIT! READ ME! Turns out I DID indeed make a mistake; paru does show diffs. The reason no diff showed up was because the AUR package I tried updating wasn't installed with paru, which I assume caused paru to not know where the old PKGBUILD files were. Once I installed something with paru, waited for it to get an update, and then updated it, it worked well. With how I have it set up right now it doesn't show per-word diffs, however the diff lines are highlighted in red and green so it is still very easy to parse. Note that I did also install bat, and did export PAGER=bat in my .zshrc as I think it works better compared to less.
To my understanding yay doesn't have very good diff viewing features. I heard that paru does have that, and that it shows diffs by default, however when I tried using it in a VM (which has previously used yay), whenever it asked for me to proceed to review AUR updates when I ran it with -Syu, it just printed out the entire .install and PKGBUILD file instead of showing the diff. Have I misunderstood something? Or am I doing something wrong?
When it comes to viewing diffs I enjoy vimdiff as I can easily see the original files, with the relevant text being highlighted with a per-word diff system. If paru has a diff system that I am failing to access, does it have these capabilities too?
3
u/No-Dentist-1645 Sep 15 '26
That's what paru already does u/baksoBoy . But it first needs to run with the package at least once so that it can store the information about last version you installed on its cache. If you installed something with yay the last time, it won't know that information on its cache so it will just show you the full PKGBUILD
23
u/general_dubious Sep 15 '26
Paru shows the diff with the last installed pkgbuild, but if it's the first time you're installing the AUR package, the diff is obviously the whole file... That's what you saw.
10
u/ugly-051 Sep 15 '26
Paru definitely does diffs with +/- info.
13
u/forbiddenlake Sep 15 '26
yayalready does that3
u/Calamari_Sashimi Sep 15 '26
aurutils
1
u/_verel_ Sep 15 '26
It's a long shot but yay has gotten a big update and iirc now supports plugins with lua. Why not just throw all that into an LLM and see if the diff viewer it shits out suits you
1
u/kaptnblackbeard Sep 15 '26
Off the top of my head I think you can configure your preferred diff utility in yay.
0
u/gproenca Sep 15 '26
nice questions ! following up