Is there a method or command which can tell from which repository a package is coming from?
If you want to find the source of the package that's currently installed, you'll need the output of
From the first command, I can see that Liferea version 1.6.2-1ubuntu6 is installed. From the second command, I can see that that version is listed in
Without too much effort, I can deduce that the source line contains "archive.ubuntu.com", "ubuntu", "lucid", and "main".
And, sure enough, my
Sadly, this information is not recorded during package installation. You can make a decent guess if the repository is still in the source list and the repository still has the package:
Even synaptic cannot tell if you disable the repository and update.
This is a little more accurate:
The newest version will typically be installed unless you have set apt-pinning or explicitly install a particular version.