How to downgrade packages in ArchLinux. There is a nice package that automates this process for you. For me I ran into an issue with postgresql version update that broke the service. So I downloaded the downgrade package ran it with postgresql and it offered all the latest package versions. Apparently the issue was caused due to major version update from 11 to 12.
Source code viewer
yay -S downgrade sudo downgrade postgresqlProgramming Language: Bash