Does apt-get -s upgrade
or some other apt command have an option to list the repositories the packages will be downloaded from?
apt-cache policy
will tell you for an individual package but I need something that displays the repos for each package, line by line.
Best Answer
You could try something like this:
Output (run just now on my debian sid system) looks like this:
Some of the packages have two URLs. That's because my system is amd64 with i386 as an added architecture, and these packages have both amd64 and i386 versions available for upgrade.
If you prefer to have the full output line, so that it looks like this:
then just delete
{ print $2 }
from the secondawk
script.