Debian: Listing all user-installed packages?

后端 未结 9 1770
灰色年华
灰色年华 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:24

    I dont know if it's possible to distiguich between user installation and default package installation, because the only way to install package is to have ROOT privillages. but you cat get all package installed and their status in one file by executing this command

    dpkg --get-selections > installed_packages.txt
    

提交回复
热议问题