Some times you need to downgrade a package - maybe because an introduced bug breaks the program - maybe because another update breaks a dependency.
downgrade package can be of some help but it can also fall short. The use of this package pose other issues to be aware of.
One requirement for a downgrade to work locally is your pacman cache. Unless you have a routine to keep this cache to a minimum it will contain all packages installed on your system and also all versions of the packages - can get pretty big if you don’t watch that cache.
What ever your downgrade reason - here is a way of doing it.
The manual way
The folder containing your packages is /var/cache/pacman/pkg
For example the
pamac package. Here is a ls from my cache folder listing all packages matching pamac.
~ >>> ls -la /var/cache/pacman/pkg/pamac* -rw-r--r-- 1 root root 360100 May 10 17:49 /var/cache/pacman/pkg/pamac-4.3.4-2-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 360592 May 11 10:04 /var/cache/pacman/pkg/pamac-4.3.4-3-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 350224 May 11 19:28 /var/cache/pacman/pkg/pamac-4.3.4-5-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 349896 May 13 13:04 /var/cache/pacman/pkg/pamac-4.3.4-6-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 351392 May 13 21:27 /var/cache/pacman/pkg/pamac-4.3.4-7-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 351772 May 14 13:27 /var/cache/pacman/pkg/pamac-4.3.5-1-x86_64.pkg.tar.xz
If I were to downgrade the pamac app I could choose to install any of these packages.
~ >>> sudo pacman -U /var/cache/pacman/pkg/package-version-number
The automated way @Chrysostomus
Alternatively, you can install the package
downgrade (Wiki link) to downgrade packages. Usage
This automates the process described by @fhdk. In addition, it allows you to choose older packages from arch way back machine. However, beware that using these arch packages in manjaro can have unintended side effects (breakage) and therefore, installing (old) packages from the arch way back machine is disabled for the stable branch of Manjaro by default. And, as always, partial updates, and therefore downgrading, is not supported.
Packages pacli and pacui provide a nice interactive interface to downgrade, among other things.