1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh # Install and remove packages from a configuration file. # Usage: apkworld [file] # Requires: apk (Alpine Linux package manager) PACKAGES="${1:-$HOME/.config/alpine-packages}" cp /etc/apk/world /etc/apk/world.backup cat "$PACKAGES" | sed 's/#.*//' | grep -v '^[:space:]*$' > /etc/apk/world apk fix
Generated with cgit - Back to sebastiano.tronto.net