Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archlinux-downgrade/downgrade
Downgrade packages in Arch Linux
https://github.com/archlinux-downgrade/downgrade
Last synced: 3 months ago
JSON representation
Downgrade packages in Arch Linux
- Host: GitHub
- URL: https://github.com/archlinux-downgrade/downgrade
- Owner: archlinux-downgrade
- License: gpl-2.0
- Created: 2012-04-20T21:21:11.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T13:43:02.000Z (11 months ago)
- Last Synced: 2024-04-27T20:37:35.344Z (7 months ago)
- Language: Shell
- Size: 528 KB
- Stars: 515
- Watchers: 5
- Forks: 25
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Downgrade
[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/archlinux-downgrade/downgrade?label=release&logo=github&color=brightgreen)](https://github.com/archlinux-downgrade/downgrade/releases)
[![AUR version](https://img.shields.io/aur/version/downgrade?logo=Arch%20Linux&color=brightgreen)](https://aur.archlinux.org/packages/downgrade/)
[![CI](https://github.com/archlinux-downgrade/downgrade/actions/workflows/ci.yml/badge.svg)](https://github.com/archlinux-downgrade/downgrade/actions/workflows/ci.yml)
[![gitlocalized ](https://gitlocalize.com/repo/4232/whole_project/badge.svg)](https://gitlocalize.com/repo/4232/whole_project?utm_source=badge)Eases downgrading packages in Arch Linux.
## Installation
Install via the [AUR](https://aur.archlinux.org/packages/downgrade/).
## Usage
```
Usage: downgrade [option...] [pkg...] [-- pacman_option...]Options:
--pacman
pacman command to use, defaults to "pacman"
--pacman-conf
pacman configuration file, defaults to "/etc/pacman.conf"
--pacman-cache
pacman cache directory,
default value(s) taken from pacman configuration file,
or otherwise defaults to "/var/cache/pacman/pkg"
--pacman-log
pacman log file,
default value taken from pacman configuration file,
or otherwise defaults to "/var/log/pacman.log"
--maxdepth
maximum depth to search for cached packages, defaults to 1
--ala-url
location of ALA server, defaults to "https://archive.archlinux.org"
--ala-only only use ALA server
--cached-only only use cached packages
--ignore
whether to add packages to IgnorePkg
--version show downgrade version
-h, --help show help scriptNote:
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.](https://wiki.archlinux.org/index.php/Arch_Linux_Archive), 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](./CHANGELOG.md) | [LICENSE](./LICENSE)