Package Details: downgrade 8.1.0-1

Git Clone URL: (read-only, click to copy)
Package Base: downgrade
Description: Bash script for downgrading one or more packages to a version in your cache or the A.L.A.
Upstream URL:
Licenses: GPL
Submitter: brisbin33
Maintainer: brisbin33 (atreyasha)
Last Packager: brisbin33
Votes: 557
Popularity: 4.75
First Submitted: 2009-11-12 01:48
Last Updated: 2020-07-30 10:35

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 ... Next › Last »

SibrenVasse commented on 2018-05-29 05:43

Running this script currently gives the following error: /usr/bin/downgrade: line 124: pacsort: command not found

Package should depend on 'pacman-contrib', as pacsort has been moved.

brisbin33 commented on 2017-09-28 21:45

Thanks for the report JohnRobson. Unfortunately, this has nothing to do with downgrade. It's an error coming from pacman directly, and is likely caused by having an outage.

You can confirm this with

# pacman -U

IIRC installing from was some weird Yaourt thing that's not recommend. Please see for the correct way to install downgrade.

JohnRobson commented on 2017-09-28 18:11

09/28 14:09:54 [ERROR] CUID#7 - Download aborted. URI=
Exception: [] errorCode=3 Resource not found

09/28 14:09:54 [NOTICE] Download GID#6ca6f0bb1f328562 not complete: //var/cache/pacman/pkg/downgrade-5.4.1-1-any.pkg.tar.xz.part

Download Results:
gid |stat|avg speed |path/URI
6ca6f0|ERR | 0B/s|//var/cache/pacman/pkg/downgrade-5.4.1-1-any.pkg.tar.xz.part

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
warning: failed to retrieve some files
error: failed to commit transaction (error invoking external downloader)
Errors occurred, no packages were upgraded.

wget commented on 2017-08-12 10:39

Could you replace the "A.R.M." mention to "A.L.A." in the description?

Xavion commented on 2017-06-13 21:51


brisbin33 commented on 2017-06-13 17:05

Thanks Xavion, good points all around. Can you open Issues on the GitHub repo for these two things?

Xavion commented on 2017-06-13 00:02

Regarding my second suggestion, your implementation idea sounds good but would require a fair bit of work. I think it'd be easier for you to just list the dates alongside the packages in the 'downgrade' output. In fact, I think this should be done even if you do decide to create the second tool.

brisbin33 commented on 2017-06-12 15:21

I Xavlon,

For the first one (sort by most-recent-first), I can't reproduce what you're seeing, they sort by recency for me (as intended)

% downgrade firefox
Available packages:

1) firefox-53.0.3-1-x86_64.pkg.tar.xz (remote)
103) firefox-23.0.1-1-x86_64.pkg.tar.xz (remote)
104) firefox-23.0.1-1-x86_64.pkg.tar.xz (local)

select a package by number:

Can you report this issue on GitHub with more details (exact invocation, exact output, system locale, etc)?

EDIT: I'm sorry, I misread that you wanted to see most recent sorted *last*. I had never actually considered this, but your reasoning makes sense! I don't know when, but I agree that the other sort would be better and will probably make that change.

For the second suggestion, this has been requested once or twice and I agree it sounds useful. I wonder if a better solution would be a second tool, one that takes a package name and rough date and parses pacman.log to find out what version of that package you had installed around that time. The output of this tool could be passed directly to downgrade (it accepts {package}-{version}, and will even skip the prompts if there's a single result). Something like:

dowgrade $(package-when firefox "last saturday")


Xavion commented on 2017-06-12 00:20

I have two requests to make.

Firstly, please reverse the order of the list. In other words, the most recent editions of packages should be shown at the bottom of the screen. It makes sense that people looking for earlier versions should have to scroll back further!

Secondly, it would be good to have the creation/upload date listed next to each entry in the list. If I want to roll back to a package I know I installed two Saturdays ago (but don't remember the version number), I have to go by its date-stamp.

taorg commented on 2017-05-13 23:48

Great package.
It works fine and its well thought.
Very easy and intuitive.
Elixir was broken with new erlang 20rc-1 and I fixed in a minute with this tool.
No other solution suit me as this.
Very useful the IgnorePkg? [y/n] option.