How do I roll back syncthingtray to a previous version?

Trying to get the previous version of syncthingtray but iv never tried to roll-back an AUR before?
I read something about getting the PKGBUILD but i dont see how or where the previous version of that is?
https://aur.archlinux.org/packages/syncthingtray

We also have these but i dont know what to do with them if they are even what im after

Did you use a package manager to install it? If so which?

Either way you may still have the older package around, so search for it.

As for getting the old PKGBUILD. On the AUR page there’s a link, View Changes. After that, click on the top commit Update version and you can see the changes that were made.

Whether the old version is useful or not, is another thing. I’ll leave that for you or someone else to decide.

You could probably (in this particular case) edit the PKGBUILD and change the
pkgver=1.5.0
variable

But it is likely that you still have the previous package in the build cache - it depends on which AUR helper you used to build the package.

Why would you want to roll it back?

1 Like

I used yay and i do still have ~/.cache/yay/syncthingtray/ with the new version of

syncthingtray-1.5.0-1-x86_64.pkg.tar.zst
syncthingtray-1.5.0.tar.gz

… but that is not what you want now, is it?

So try editing the PKGBUILD.

and consider clarifying:

Will also need to change sha256sums, and perhaps pkgrel.

-pkgver=1.4.13
-pkgrel=2
+pkgver=1.5.0
+pkgrel=1
...
-sha256sums=('18e604518fc252e49ce1cf8249f1ee15ac094c9d5303b02d23fe1d8468736cef')
+sha256sums=('ddec89979a579b703de5324383f4171ab89844c83fbc725c663a81951ac4b070')
1 Like

Nop its not but i dont know how to get the previous versions of pkg.tar.zst or the tar.gz ?

because it seems that the latest version is for KDE6 i think? which is why its lost its ability to use the plasma widget GUI, which is why i want to roll it back

I don’t think so - but I don’t know.
It doesn’t look like that to me when reading through the dependencies to build it.

But I do not use KDE Plasma … or syncthing or any GUI for it.

So if i get the PKGBUILD and edit it just the way you show then execute

makepkg

on the PKGBUILD
?

Yes, but technically you need to edit it in reverse, ie remove the + lines and replace with the - lines.

https://wiki.archlinux.org/title/Arch_User_Repository#Build_the_package

updpkgsums is easy for automatically updating the sums.

Why? Sounds like an XY Problem: You’re asking about your attempted solution rather than your actual problem. This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help–which apparently has already transpired…

So is makepkg -g and doesn’t even need pacman-contrib. :wink:

Ah, so it does, but seemingly not quite the same, with it not updating the PKGBUILD by default.

       -g, --geninteg
           For each source file in the source array of PKGBUILD, download the file if required and generate integrity checks. The integrity checks generated are determined by the
           checks present in the PKGBUILD, falling back to the value of the INTEGRITY_CHECK array in makepkg.conf(5) if these are absent This output can be redirected into your
           PKGBUILD for source validation using "makepkg -g >> PKGBUILD"

(And seemingly needing an extra run then too, not being able to, ex, makepkg -gsric)

I have a response from the dev, It does seem to be to do with kde6 and plasma widgets.

I need to update to syncthingtray-qt6

I am currently giving it a go. Thx all.

Because this is not the first time i have wanted to roll-back an AUR so this time i wanted to actually figure that specific ability out. It may of helped problem x, it may not but its what i wanted to know.

Generally speaking - makepkg with pkgbuild, yes, BUT you will also need an old version of the source code. Pkgbuild is only the recipe, you still need the right ingredients.

Normally one would not “roll back” any package as it would put them in an unsupported, partial upgrade state.

I’ve edited your topic title (since your edit window probably expired) to reflect your more specific attempted solution as outlined in your first post.

By the way, having a problem with an AUR package is a different topic then just a general question about how to do something more generic like temporarily downgrading a package.

Next time, please be more clear and concise.

Please see: