-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathREADME.md
94 lines (69 loc) · 2.86 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# 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> [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
--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.](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)