~krystianch/apk-nodeps

List Alpine packages with no dependencies
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~krystianch/apk-nodeps
read/write
git@git.sr.ht:~krystianch/apk-nodeps

You can also use your local clone with git send-email.

#apk-nodeps

List Alpine packages with no dependencies.

#Requirements

#Usage

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

#Contributing

Send patches to ~krystianch/public-inbox@lists.sr.ht. (help, I only know pull requests)

#License

MIT License