Debian:列出所有用户安装的软件包吗? [英] Debian: Listing all user-installed packages?

查看:217
本文介绍了Debian:列出所有用户安装的软件包吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我参加的网络安全竞赛中,我得到了一台Debian虚拟机,其中安装了许多软件包,并要求它们清除无关或恶意的软件包.

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.

过去,我曾使用dpkg -l | grep [searchterm]和一些常用软件包来执行此任务.但是,这是极其低效且耗时的.

In the past, I've used dpkg -l | grep [searchterm] and a list of common packages to preform this task. However, this is extremely inefficient and time-consuming.

为了加快我的任务,是否有任何方法可以搜索用户已为其安装了进程的系统上安装的软件包列表,而不是系统默认"软件包?

To speed up my task, is there any way to search through the list of packages installed on a system for which processes have been installed by a user and are not system "default" packages?

推荐答案

此命令可能会缩短您的工作:

This command may shorten your work:

apt-mark showmanual

应该显示手动"安装了哪些软件包.但是,它并不是100%可靠的,因为许多自动安装的软件包都标记为手动安装(由于此处描述的时间太长).

It is supposed to show what packages were installed "manually". It is not 100% reliable though, as many automatically installed packages are flagged as manually installed (because of reasons too long to describe here).

您也可以(如果允许)运行clamav和/或rkhunter之类的安全工具来扫描计算机中的恶意程序.

You may also (if allowed) run security tools such as clamav and/or rkhunter to scan your computer for malicious programs.

这篇关于Debian:列出所有用户安装的软件包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆