Skip to content

archlinux-downgrade/downgrade

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

1. Use single quotes for constant expressions with special symbols that
   may be evaluated with double quotes
2. Use double quotes where the variable needs to be expanded
a1d9b22

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
May 31, 2022 16:21
bin
March 31, 2023 06:47
March 30, 2023 17:48
doc
March 30, 2023 17:48
January 11, 2015 12:37
April 21, 2020 14:37
March 31, 2023 06:47

Downgrade

GitHub tag (latest SemVer) AUR version CI gitlocalized

Eases downgrading packages in Arch Linux.

Installation

Install via the AUR.

Usage

Usage: downgrade [option...] <pkg> [pkg...] [-- pacman_option...]

Options:
  --pacman        <command>
                  pacman command to use, defaults to "pacman"
  --pacman-conf   <path>
                  pacman configuration file, defaults to "/etc/pacman.conf"
  --pacman-cache  <path>
                  pacman cache directory,
                  default value(s) taken from pacman configuration file,
                  or otherwise defaults to "/var/cache/pacman/pkg"
  --pacman-log    <path>
                  pacman log file,
                  default value taken from pacman configuration file,
                  or otherwise defaults to "/var/log/pacman.log"
  --maxdepth      <integer>
                  maximum depth to search for cached packages, defaults to 1
  --ala-url       <url>
                  location of ALA server, defaults to "https://archive.archlinux.org"
  --ala-only      only use ALA server
  --cached-only   only use cached packages
  --ignore        <prompt|always|never>
                  whether to add packages to IgnorePkg
  --version       show downgrade version
  -h, --help      show help script

Note:
  Options after the -- characters will be treated as pacman options.
  See downgrade(8) for details.

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 any of the following version-filtering operators =, ==, =~, <=, >=, < and >:

# 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

Configuration

Command-line options can be set persistently in /etc/xdg/downgrade/downgrade.conf.

Development & Testing

Install cram: https://aur.archlinux.org/packages/cram/

make test

CHANGELOG | LICENSE