I'm trying to see witch packages I've installed, but when I dpkg -l I got a big list of packages and their packages dependencies.
There's a way to get only the list of packages explicitly installed?
Ex:
apt-get install mysql-server
Thats also installs mysql-common
I want that when i list my packages only the mysql-server is showed.
apt-mark showmanualyour thing? this lists all packages which have been marked manually installed. – Videonauth Nov 26 '17 at 07:53apt-mark; however I think it will also show packages that were installed during the initial installation of Ubuntu. – fkraiem Nov 26 '17 at 07:55apt showto determine which are dependencies and which are roots/endpoints of those trees you wont get that tbh. – Videonauth Nov 26 '17 at 07:56cat /var/log/apt/history.log | grep 'apt-get install '. – Eleandro Duzentos Nov 26 '17 at 08:07dpkg -lwhich I downloaded as a .deb-file and installed directly by the software manager. This package is not listed by your solution. – muclux Nov 26 '17 at 08:53apt-mark showmanuallisted 1574 packages. – muclux Nov 26 '17 at 09:03apt-mark showmanual. This reduces the output to 256 packages. – muclux Nov 26 '17 at 09:42sudo apt install <package> && echo "<package>" >> install.log. Yes its a bit more typing but pays out in the long run if I ever have to redo my system. – Videonauth Nov 26 '17 at 09:57