downgrade
- downgrade arch linux packages
downgrade OPTIONS PKG [PKG...] [-- PACMAN OPTION...]
Downgrade Arch Linux packages.
Calling downgrade on a package will lead to the following output:
Example:
- 1) terraform 0.11.11 2 remote
- 2) terraform 0.11.12 1 /var/cache/pacman/pkg
+ 3) terraform 0.11.13 1 remote
+ 4) terraform 0.11.13 1 /var/cache/pacman/pkg
- 5) terraform 0.12.0 1 remote
- 6) terraform 0.12.0 1 /var/cache/pacman/pkg
7) terraform 0.12.1 1 remote
Available packages (community):
7/7
>
The columns have the following meaning:
If you have already downloaded this version, it will show the cache directory where the package is located. remote indicates that the version is available on the ALA.
--pacman
=COMMAND
--pacman-conf
=PATH
--pacman-cache
=PATH
--pacman-log
=PATH
--maxdepth
=INTEGER
--ala-url
=URL
--ala-only
--cached-only
--ignore
=prompt|always|never
--unignore
PKG [PKG...]--latest
| --oldest
--ignore
.--prefer-cache
--cached-only
, --prefer-cache
does query ala if no package
could be matched in cache.--version
-h
, --help
Downgrade packages checking both local cache and the A.L.A, which is the default behavior:
# downgrade foo bar
Downgrade packages, specifying multiple cache directories:
# downgrade --pacman-cache /path/to/cache --pacman-cache /path/to/other/cache foo bar
Downgrade a package with version-filtering:
# downgrade 'foo=1.0.0-1' 'bar>=1.2.1-1' 'baz=~^1.2'
Downgrade a package, looking in only local cache:
# downgrade --cached-only foo
Downgrade a package, looking in only the A.L.A.:
# downgrade --ala-only foo
Non-interactively downgrade foo
to 1.0.0-1
# downgrade --latest --prefer-cache --ignore never 'foo=1.0.0-1'
Command-line options can be set persistently in /etc/xdg/downgrade/downgrade.conf. Note that these options are parsed first by downgrade, followed by any other command-line options provided by the user.
As per the usage syntax, any options supplied after the -- character sequence will be treated as pacman options.
By default, downgrade will search both local caches and the ALA.
If only one package with its corresponding location matches, the package will be installed without further prompt from the user.
downgrade allows the use of the following version-filtering operators: =, ==, =~, <=, >=, < and >. Note that =~ represents a regex match operator and =/== are aliases.
downgrade will stop further processing and exit non-zero if it encounters any of the following scenarios for any of its arguments:
pacman -U
returned non-zeroIgnorePkg
additionspacman(8), vercmp(8), sudo(8), pacman.conf(5), find(1), su(1), fzf(1).
Open a GitHub issue on https://github.com/archlinux-downgrade/downgrade.