How do you downgrade multiple packages in arch linux?

I am trying to downgrade the vim package on arch linux to an earlier version (as I need to use an earlier version of ruby which breaks it [ref]).

running downgrade vim and selecting the version complains that I need to downgrade the vim-runtime package. trying to downgrade vim-runtime or downgrade vim vim-runtime complains similarly.

How do I downgrade multiple packages at once on arch linux.

Asked By: Mike H-R

||

For downgrading packages from the official repositories, your first stop should be pacman and your package cache in /var/cache/pacman/pkg/, like so:

pacman -U /var/cache/pacman/pkg/$pkgname-$pkgver

You can pass multiple packages to pacman to downgrade in this fashion.

The tools downgrade and downgrader are useful if you have cleared your cache and you need to retrieve older packages from the Arch Rollback Machine.

The Arch wiki has a typically thorough page on downgrading packages.

Answered By: jasonwryan
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.