Skip to content

Instantly share code, notes, and snippets.

@mhadidg
Created September 13, 2025 15:49
Show Gist options
  • Save mhadidg/de4dda31c7f4ce473f325a1fabacf214 to your computer and use it in GitHub Desktop.
Save mhadidg/de4dda31c7f4ce473f325a1fabacf214 to your computer and use it in GitHub Desktop.

Revisions

  1. mhadidg created this gist Sep 13, 2025.
    4 changes: 4 additions & 0 deletions apt-manually-installed.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    apt-mark showmanual \
    | sort -u \
    | xargs -r -n1 sh -c \
    'LC_ALL=C aptitude -q=2 why "$0" 2>/dev/null | grep -q "Manually installed" && echo "$0"'