Debian: Listing all user-installed packages?

后端 未结 9 1792
灰色年华
灰色年华 2021-02-04 03:39

For a cyber security competition I participate in, I\'m given a Debian virtual machine with many packages installed and asked to clean extraneous or malicious packages.

9条回答
  •  爱一瞬间的悲伤
    2021-02-04 04:42

    You may also look at the file /var/lib/apt/extended_states.

    cat /var/lib/apt/extended_states | grep -B2 'Auto-Installed: 0'
    

    This is useful if you want to know what was installed on an old partition.

提交回复
热议问题