Debian: Listing all user-installed packages?

If none of the more specific forums is the right place to ask

Debian: Listing all user-installed packages?

Postby Sofia951 » 2018-12-19 03:54

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.

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?
Sofia951
 
Posts: 2
Joined: 2018-11-02 09:23

Re: Debian: Listing all user-installed packages?

Postby fred44nl » 2018-12-19 10:01

how about:

Code: Select all
sudo aptitude search '?narrow(?installed, !?origin(Debian))!?obsolete'
Debian 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: Debian: Listing all user-installed packages?

Postby arochester » 2018-12-19 11:07

Appears to be a Copy and Paste of a post two years ago.
https://stackoverflow.com/questions/410 ... d-packages

Post locked.
User banned.
arochester
 
Posts: 1367
Joined: 2010-12-07 19:55


Return to General Questions

Who is online

Users browsing this forum: NHOJ and 10 guests

fashionable