Background
I had a dual-boot Windows 10/Ubuntu 16.04 system. Then I made it triple boot with 18.04. Then I added Lubuntu 16.04 within Vitualbox VM inside Ubuntu 16.04 system.
Somewhere along the way I got lost and deleted /usr
instead of usr
. Then thinking 18.04
was freshly synced to 16.04
I copied those files over /usr
and ended up with a Frankenstein 16.04/18.04.
So I created a live USB 16.04.4 and from that copied over the /usr
directory. As luck would have it I ended up with a 16.04.4/16.04.5 hybrid with some 18.04 mixed in.
My apt
was broken but dpkg
still worked so I used it to reinstall apt
but it was yet a different version.
I wiped my 18.04 partition and installed a fresh copy of 16.04.5. I installed some random applications like conky
, dialog
, gimp
, vnstat
, yad
and maybe a couple of others.
Because I can still mount my old 16.04 partition how can I get a list of packages (without libraries and linux kernels) that still need to be installed on my new 16.04 partition?