How to tell which repositories provide which packages?

Little Girl littlergirl at gmail.com
Tue Jan 5 20:29:17 UTC 2021


Hey there,

Chris Green wrote:

>Is there a way to tell from which repositories packages have been
>installed?
>
>I particularly want to see if I have any packages installed from a
>particular PPA.

This will give you your installed version, the candidate version
that's available (if any), and the sources for the various versions:

apt-cache policy PACKAGENAME

If you're feeling frisky, either of these will probably give you way
more information that you need, but can be good to keep in your back
pocket:

dpkg -s PACKAGENAME

apt-cache showpkg PACKAGENAME

-- 
Little Girl

There is no spoon.




More information about the ubuntu-users mailing list