Maybe so, but the fact is that the file does not contain information about all packages installed to my system. (apt 2.0.4 (amd64) / Ubuntu 20.04)
$ grep -c '^Package:' /var/lib/apt/extended_states 698 $ dpkg -l | grep ^ii | wc -l 1893
My file contains only records for packages that are automatically installed for some reason. (All records have "Auto-Installed: 1")
apt-mark showmanual works anyway.
Maybe so, but the fact is that the file does not contain information about all packages installed to my system. (apt 2.0.4 (amd64) / Ubuntu 20.04)
$ grep -c '^Package:' /var/lib/ apt/extended_ states
698
$ dpkg -l | grep ^ii | wc -l
1893
My file contains only records for packages that are automatically installed for some reason. (All records have "Auto-Installed: 1")
apt-mark showmanual works anyway.