Update README.md
This commit is contained in:
@@ -61,9 +61,10 @@ docker
|
|||||||
|
|
||||||
| Flag | Alias | Description |
|
| Flag | Alias | Description |
|
||||||
|------|-------|-------------|
|
|------|-------|-------------|
|
||||||
|
| `--help` | `-h` | Show help message |
|
||||||
| `--state` | `-s` | State file to read package list from (can be used multiple times) |
|
| `--state` | `-s` | State file to read package list from (can be used multiple times) |
|
||||||
| `--dry-run` | | Preview changes without applying them |
|
| `--dry-run` | | Preview changes without applying them |
|
||||||
| `--help` | `-h` | Show help message |
|
| `--verbose` | `-v` | Enable verbose output |
|
||||||
|
|
||||||
## How It Works
|
## How It Works
|
||||||
|
|
||||||
@@ -83,59 +84,6 @@ If the pacman database is older than 24 hours, it is automatically refreshed.
|
|||||||
|
|
||||||
Operations are logged to `/var/log/declpac.log`.
|
Operations are logged to `/var/log/declpac.log`.
|
||||||
|
|
||||||
## Output
|
|
||||||
|
|
||||||
```
|
|
||||||
# Packages installed/removed
|
|
||||||
Installed 5 packages, removed 2 packages
|
|
||||||
|
|
||||||
# No changes needed
|
|
||||||
Installed 0 packages, removed 0 packages
|
|
||||||
|
|
||||||
# Dry-run preview
|
|
||||||
Installed 3 packages, removed 1 packages
|
|
||||||
Would install: vim, git, docker
|
|
||||||
Would remove: python2
|
|
||||||
|
|
||||||
# Error
|
|
||||||
error: package not found: <package-name>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Exit Codes
|
|
||||||
|
|
||||||
| Code | Meaning |
|
|
||||||
|------|---------|
|
|
||||||
| 0 | Success |
|
|
||||||
| 1 | Error |
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
### Minimal System
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo -e "base\nbase-devel\nlinux-headers\nvim\ngit\ncurl" > ~/.config/declpac/minimal.txt
|
|
||||||
sudo declpac --state ~/.config/declpac/minimal.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
### Development Environment
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# development.txt
|
|
||||||
go
|
|
||||||
nodejs
|
|
||||||
python
|
|
||||||
rust
|
|
||||||
docker
|
|
||||||
|
|
||||||
sudo declpac --state development.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
### Dry-Run
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo declpac --dry-run --state packages.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
### Permission denied
|
### Permission denied
|
||||||
|
|||||||
Reference in New Issue
Block a user