How can I get a list of repositories 'apt-get' is checking?

apt
ktenney picture ktenney · Dec 27, 2011 · Viewed 238.4k times · Source

I want a list of repositories in sources.list, plus those in sources.list.d/.

Can I get this list in a form suitable for setting up another host so it watches the same repositories?

Additionally, how do I determine which repository is the source of a package, either installed or available?

Answer

ktenney picture ktenney · Dec 30, 2011

It seems the closest is:

apt-cache policy