7

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.

Jorge Castro
  • 73,717

3 Answers3

19

It's much better to use apt-mark tool:

apt-mark showmanual

This is exactly what you want. You also can mark packages as manually installed or not and hold the packages on fixed versions.

Aleksei
  • 291
9

That do what you want:

cat /var/log/apt/history.log | grep -E 'apt(-get)? install '
rofrol
  • 240
wojox
  • 11,840
0

I've built a script using the idea of wojox. It creates file in your home directory with all packages in it.

https://github.com/PaperMountainStudio/list-manually-installed-packages

FK-VH
  • 188