summaryrefslogtreecommitdiff
path: root/scripts/apkworld
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-05-06 08:32:18 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-05-06 08:37:44 +0200
commit19d470ea1c93974645cf822089ce8c0d7f832b2f (patch)
treebfed8e84efe2e3516c5392af6bc8637a88443fae /scripts/apkworld
parent60052659b98832c78c902e4f27ecee2663d8e913 (diff)
downloadconfig-19d470ea1c93974645cf822089ce8c0d7f832b2f.tar.gz
config-19d470ea1c93974645cf822089ce8c0d7f832b2f.zip
Added apkworld
Diffstat (limited to '')
-rwxr-xr-xscripts/apkworld12
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
8PACKAGES="${1:-$HOME/.config/alpine-packages}"
9
10cp /etc/apk/world /etc/apk/world.backup
11cat "$PACKAGES" | sed 's/#.*//' | grep -v '^[:space:]*$' > /etc/apk/world
12apk fix

Generated with cgit - Back to sebastiano.tronto.net