Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 9119  / 2 Years ago, sun, august 28, 2022, 10:25:12

How do I see a list of packages I manually (really manually, as in I typed them in) installed?



I want to exclude packages that were installed as a result of being dependencies of other packages that I manually typed in.



For example, if I ran the command:



sudo apt-get install mysql-server


and as a result mysql-common was installed, I want to only see mysql-server in the list and not mysql-common.



I've searched for an answer and found many that were close but not exactly what I want.


More From » apt

 Answers
1

That do what you want:


cat /var/log/apt/history.log | grep -E 'apt(-get)? install '

[#35171] Tuesday, August 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emuralm

Total Points: 290
Total Questions: 111
Total Answers: 117

Location: China
Member since Thu, Sep 1, 2022
2 Years ago
;