1
0
Files
dotfiles/.config/dotfiles/scripts/dpkg-list-manual
Konstantin Demin 9871b29288
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
treewide: move zsh functions to sh scripts
2025-09-09 20:53:55 +03:00

16 lines
195 B
Bash
Executable File

#!/bin/sh
set -ef
w=$(mktemp -d) ; : "${w:?}"
dpkg-list-installed > "$w/all"
dpkg-list-auto > "$w/auto"
if [ -s "$w/auto" ] ; then
grep -Fxv -f "$w/auto"
else
cat
fi < "$w/all"
rm -rf "$w"