2 steps:  file -> RPM and then RPM -> Repo.
File -> RPM
  rpm -qf /usr/bin/google-chrome
  google-chrome-stable-80.0.3987.132-1.x86_64

RPM -> Repo
  dnf info google-chrome-stable | grep -e ^Name -e ^From  -e ^Version
  Name         : google-chrome-stable
  Version      : 80.0.3987.132
  From repo    : production-rhel-x86_64-workstation-csb-8.0

On Tue, Mar 17, 2020 at 9:34 AM Neal Becker <ndbeck...@gmail.com> wrote:

> Is there a way to query dnf to tell which which repo a given file or a
> given rpm came from?
>
> Thanks,
> Neal
>

John Westerdale

Sr Container Consultant

Red Hat <https://www.redhat.com/>

NYC Office/WFH

john.westerd...@redhat.com
M: 201-376-9993     IM: jwesterd   He / Him / His
<https://www.redhat.com/>
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to