How to downgrade/revert a package

Hello, I am facing with a problem with pgAdmin4 because since 4.26 version it started to ask for username/credentials without the option to setup one. It is (or should be) something related to python but I don’t know much about it.
Anyway, waiting/hoping the Opensuse TW maintainer solve he problem I’d like to revert back to a previous version where there wasn’t the authentication problem but… I can’t :frowning:
The version tab in Yast Software manager contains only the current version and also a search with zypper gives the same result

zypper search --details --match-exact pgAdmin4                   

S | Nome     | Tipo      | Versione | Arch.  | Repository
--+----------+-----------+----------+--------+----------------------------
  | pgadmin4 | pacchetto | 4.27-1.1 | x86_64 | Repository principale (OSS)
  | pgadmin4 | pacchetto | 4.27-1.1 | x86_64 | openSUSE:Factory
  | pgadmin4 | pacchetto | 4.27-1.1 | x86_64 | openSUSE:Tumbleweed
  | pgadmin4 | pacchetto | 4.27-1.1 | i586   | Repository principale (OSS)
  | pgadmin4 | pacchetto | 4.27-1.1 | i586   | openSUSE:Factory
  | pgadmin4 | pacchetto | 4.27-1.1 | i586   | openSUSE:Tumbleweed

Moreover I realized that this is true also for lots of other applications so I am wondering if I am missing some configuration/repos… :dont-know:
Any suggestions?

thanks,
Marco

You may find what you need in one of the past snapshots archive, for instance the oss repo for 20201104 is here:
http://download.opensuse.org/history/20201104/tumbleweed/repo/oss/x86_64/

EDIT: I see now that the oldest version available is 4.26 on 20201012, so if you already found the problem back then you might be unlucky…

Tumbleweed, as a rolling release, doesn’t retain older versions in the “normal” repositories.

As @OrsoBruno wrote, you can find a limited number of previous versions at: https://download.opensuse.org/history/

I would strongly suggest you don’t add any repositories from there - directly download only the required packages and install those locally.

If you do add any “history” repositories ensure you disable/remove them after you’ve acquired the packages you need.

As @Tannington already hinted at, you are using Tumbleweed, thus the Update repos are not in use (that is, in exceptional cases they may be used, but that is not normally the case). Thus you have only the version of the main repo available (and it is the main repo that changes itself when you move to a next TW snapshot).

You are probably confusng the way TW works with the way Leap works. In Leap the version of a package on release of the Leap version is in the main repo. All updated versions (if applicable) of a package are in the Update repo. Thus all the versions are available to the software and thus to you using the YaST tab or zypper se.

This might have a different cause. Lately Postgresql 13 was released in TW. Which is a major version bump, and needed f.e. my akonadi database to be migrated to 13. At that moment I had no time so I used


sudo update-alternatives --config postgresql 


and set postgresql back to 12. Result: akonadi back in business. A similar thing might be going on here.

I guess that is an answer to the OP saying:

I am facing with a problem with pgAdmin4 because since …

But that is not what he asks for >:(.

He apparently hopes for a miracle

waiting/hoping the Opensuse TW maintainer solve he problem

And his question was about

I’d like to revert back to a previous version

which is of course something completley different :frowning:

Many thanks to all of you for your support and suggestions. I downloaded the 4.26 version and I am going to test it.
If it will show up the same problem I’ll try to post it as a bug and I’ll cross my fingers :slight_smile: