Get all the packages installed by the user

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

Get all the packages installed by the user

Postby ychaouche » 2021-02-22 09:54

Dear debian forums,

Is there a way to get all the packages installed by the user after first base install ? parsing /var/log/apt/history isn't an option because it's only a year long and the machine could be much older than that.
ychaouche
 
Posts: 73
Joined: 2014-12-11 09:45

Re: Get all the packages installed by the user

Postby sunrat » 2021-02-22 11:35

Maybe:
Code: Select all
apt-mark showmanual

although I think apt marks packages as manually installed if they are dependencies of other packages you install even if they were automatically installed previously.
Last edited by sunrat on 2021-02-22 11:47, edited 1 time in total.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3424
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Get all the packages installed by the user

Postby ychaouche » 2021-02-22 11:44

thanks, that also lists packages in the default base install. If I could have that list in a separate command, I could do a diff and have the manual-manual install
ychaouche
 
Posts: 73
Joined: 2014-12-11 09:45

Re: Get all the packages installed by the user

Postby sunrat » 2021-02-22 11:51

This command will give a total list of installed packages in the same format:
Code: Select all
apt list -i | cut -d'/' -f1
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3424
Joined: 2006-08-29 09:12
Location: Melbourne, Australia


Return to General Questions

Who is online

Users browsing this forum: No registered users and 23 guests

fashionable