server-scripts/list-all-pkgs

12 lines
146 B
Plaintext
Raw Normal View History

2018-09-13 07:43:21 +00:00
#!/usr/bin/env bash
2014-10-19 15:27:33 +00:00
(
2018-09-13 07:43:21 +00:00
for c in /lxc/*
2014-10-19 15:27:33 +00:00
do
2018-09-13 07:43:21 +00:00
if [ -d "$c/rootfs" ]
then
pacman -r "$c/rootfs" -Q
fi
2014-10-19 15:27:33 +00:00
done
) | cut -d ' ' -f 1 | sort | uniq