diff options
Diffstat (limited to 'scripts')
| -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 | ||
