Skip to content

Commit d42563d

Browse files
committed
chore(README): move EXAMPLES to downgrade(8)
1 parent 48c2d67 commit d42563d

File tree

2 files changed

+28
-73
lines changed

2 files changed

+28
-73
lines changed

README.md

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -13,79 +13,7 @@ Install via the [AUR](https://aur.archlinux.org/packages/downgrade/).
1313

1414
## Usage
1515

16-
```
17-
Usage: downgrade [option...] <pkg> [pkg...] [-- pacman_option...]
18-
19-
Options:
20-
--pacman <command>
21-
pacman command to use, defaults to "pacman"
22-
--pacman-conf <path>
23-
pacman configuration file, defaults to "/etc/pacman.conf"
24-
--pacman-cache <path>
25-
pacman cache directory,
26-
default value(s) taken from pacman configuration file,
27-
or otherwise defaults to "/var/cache/pacman/pkg"
28-
--pacman-log <path>
29-
pacman log file,
30-
default value taken from pacman configuration file,
31-
or otherwise defaults to "/var/log/pacman.log"
32-
--maxdepth <integer>
33-
maximum depth to search for cached packages, defaults to 1
34-
--ala-url <url>
35-
location of ALA server, defaults to "https://archive.archlinux.org"
36-
--ala-only only use ALA server
37-
--cached-only only use cached packages
38-
--ignore <prompt|always|never>
39-
whether to add packages to IgnorePkg
40-
--latest pick latest matching version
41-
--oldest pick oldest matching version
42-
--prefer-cache do not query ala if a matching package was found in cache
43-
--version show downgrade version
44-
-h, --help show help script
45-
46-
Note:
47-
Options after the -- characters will be treated as pacman options.
48-
See downgrade(8) for details.
49-
```
50-
51-
Downgrade packages checking both local cache and the
52-
[A.L.A.](https://wiki.archlinux.org/index.php/Arch_Linux_Archive), which is the
53-
default behavior:
54-
55-
```
56-
# downgrade foo bar
57-
```
58-
59-
Downgrade packages, specifying multiple cache directories:
60-
61-
```
62-
# downgrade --pacman-cache /path/to/cache --pacman-cache /path/to/other/cache foo bar
63-
```
64-
65-
Downgrade a package with any of the following version-filtering operators `=`,
66-
`==`, `=~`, `<=`, `>=`, `<` and `>`:
67-
68-
```
69-
# downgrade 'foo=1.0.0-1' 'bar>=1.2.1-1' 'baz=~^1.2'
70-
```
71-
72-
Downgrade a package, looking in only local cache:
73-
74-
```
75-
# downgrade --cached-only foo
76-
```
77-
78-
Downgrade a package, looking in only the A.L.A.:
79-
80-
```
81-
# downgrade --ala-only foo
82-
```
83-
84-
Noninteractively downgrade foo to 1.0.0-1
85-
86-
```
87-
# downgrade --latest --prefer-cache --ignore never 'foo=1.0.0-1'
88-
```
16+
See [downgrade(8)](https://archlinux-downgrade.github.io/downgrade/downgrade.8).
8917

9018
## Configuration
9119

doc/downgrade.8.ronn

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,33 @@ on the ALA.
106106
* `-h`, `--help`:
107107
Show help script.
108108

109+
## EXAMPLES
110+
111+
Downgrade packages checking both local cache and the A.L.A, which is the default
112+
behavior:
113+
114+
# downgrade foo bar
115+
116+
Downgrade packages, specifying multiple cache directories:
117+
118+
# downgrade --pacman-cache /path/to/cache --pacman-cache /path/to/other/cache foo bar
119+
120+
Downgrade a package with version-filtering:
121+
122+
# downgrade 'foo=1.0.0-1' 'bar>=1.2.1-1' 'baz=~^1.2'
123+
124+
Downgrade a package, looking in only local cache:
125+
126+
# downgrade --cached-only foo
127+
128+
Downgrade a package, looking in only the A.L.A.:
129+
130+
# downgrade --ala-only foo
131+
132+
Non-interactively downgrade `foo` to `1.0.0-1`
133+
134+
# downgrade --latest --prefer-cache --ignore never 'foo=1.0.0-1'
135+
109136
## CONFIGURATION FILE
110137

111138
Command-line options can be set persistently in

0 commit comments

Comments
 (0)