diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-05-06 08:32:18 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-05-06 08:37:44 +0200 |
| commit | 19d470ea1c93974645cf822089ce8c0d7f832b2f (patch) | |
| tree | bfed8e84efe2e3516c5392af6bc8637a88443fae /scripts/apkworld | |
| parent | 60052659b98832c78c902e4f27ecee2663d8e913 (diff) | |
| download | config-19d470ea1c93974645cf822089ce8c0d7f832b2f.tar.gz config-19d470ea1c93974645cf822089ce8c0d7f832b2f.zip | |
Added apkworld
Diffstat (limited to '')
| -rwxr-xr-x | scripts/apkworld | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/apkworld b/scripts/apkworld new file mode 100755 index 0000000..8200983 --- /dev/null +++ b/scripts/apkworld | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Install and remove packages from a configuration file. | ||
| 4 | |||
| 5 | # Usage: apkworld [file] | ||
| 6 | # Requires: apk (Alpine Linux package manager) | ||
| 7 | |||
| 8 | PACKAGES="${1:-$HOME/.config/alpine-packages}" | ||
| 9 | |||
| 10 | cp /etc/apk/world /etc/apk/world.backup | ||
| 11 | cat "$PACKAGES" | sed 's/#.*//' | grep -v '^[:space:]*$' > /etc/apk/world | ||
| 12 | apk fix | ||
