I have been hunting for an answer to this for a long time, and although I've seen proposed solutions, none of them works.
I can see all packages ready for update with this command:
apt list --upgradable
Some of them are held back due to phased updates. I want to know which ones will be upgraded, and which ones held back.
All that I have so far is to issue this command (once for each package):
apt-cache policy [packagename]
If the output contains the string (phased …%)
(one, two or three digits before the percentage sign), it means that the package is part of the phased updates. But it doesn't tell whether or not it will be installed on my machine right now.
How do I tell which of the pending packages would be installed right now, and which ones would be held back due to phased updates?
I'm running Ubuntu 22.04, in case that makes a difference.
Thank you