Add usage example
Initial commit
List Alpine packages with no dependencies.
git clone https://git.sr.ht/~krystianch/apk-nodeps
cd apk-nodeps
apk dot --installed | ./apk-nodeps
Example: get list of packages with no dependencies, sorted by size.
for p in $(apk dot --installed | ./apk-nodeps | rev | cut -d- -f 3- | rev); do
apk info -s "$p" \
| sed '2q;d' \
| tr ' GiB' '000000000' \
| tr ' MiB' '000000' \
| tr ' KiB' '000' \
| tr -d " B\n"
echo " $p"
done
Send patches to ~krystianch/public-inbox@lists.sr.ht. (help, I only know pull requests)