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 <ndbecker2(a)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.westerdale(a)redhat.com
M: 201-376-9993 IM: jwesterd He / Him / His
<
https://www.redhat.com/>