I'd like to see to what extent my system is LTS-supported by means of what packages are supported for 5 years and which are not. I could disregard some non-5yr-supported packages, as some are rarely used or very unlikely to get into (security) issues.
I think this is useful as one can get a report and draw a conclusion, e.g. "my system is 100% LTS", "due to packages X,Y,Z, my system is just 99% LTS", "due to the use of KDE, my system is now 50% LTS".
$ apt-cache show unity | grep ^Supported Supported: 5y $ apt-cache show lxde-core | grep ^Supported <no output>
I could write a script to get all information for all the packages, however, the
apt-cache commands are horribly slow:
real 0m1.535s user 0m1.484s sys 0m0.036s
With 2700+ packages installed, this would take roughly 70 minutes (!).
How can I speed up things and get a report for all non-5yr-supported packages on my system?
I'd prefer a simple
apt-* shell command for the use in a simple shell script. If it would require more advanced scripting like going into Python, this is fine too. Eventually, I would like to release a (small) script to create a report on a system easily and quickly.
Note: I'm not interested in the discussion about whether or not a specific flavour of Ubuntu provides LTS or not - this is really just packages. You can just mix LTS and non-LTS packages on a system.