server-scripts/list-all-pkgs
2018-09-13 07:43:21 +00:00

12 lines
146 B
Bash
Executable File

#!/usr/bin/env bash
(
for c in /lxc/*
do
if [ -d "$c/rootfs" ]
then
pacman -r "$c/rootfs" -Q
fi
done
) | cut -d ' ' -f 1 | sort | uniq