Skip to content

Commit

Permalink
updated dump_installed_pkgs.sh to use apt-mark instead of apt
Browse files Browse the repository at this point in the history
  • Loading branch information
br-cpvc committed Nov 22, 2024
1 parent ed62e36 commit 6f8d721
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions dump_installed_pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ dstdir="pkgs_installed/$ts"
mkdir -p $dstdir
echo "dumping to folder: $dstdir"

if [ -x "$(command -v apt)" ]; then
dstfile="$dstdir/apt.txt"
#if [ -x "$(command -v apt)" ]; then
# dstfile="$dstdir/apt.txt"
# echo "writing: $dstfile"
# apt list --installed > $dstfile
#fi

if [ -x "$(command -v apt-mark)" ]; then
dstfile="$dstdir/apt-mark.txt"
echo "writing: $dstfile"
apt list --installed > $dstfile
apt-mark showmanual > $dstfile
fi

if [ -x "$(command -v pip)" ]; then
Expand Down

0 comments on commit 6f8d721

Please sign in to comment.