That's a risky way to check for existence of a package in a repo. What happens when the package exists but the repodata doesn't include it?
On Wed, Nov 22, 2017 at 1:44 AM, Greg Sheremeta <[email protected]> wrote: > On Tue, Nov 21, 2017 at 2:27 PM, Barak Korren <[email protected]> wrote: > >> On 21 November 2017 at 21:04, Idan Shaby <[email protected]> wrote: >> > Hi, >> > >> > How do I check if our ovirt master repos contain version 1.2.0 of >> > ovirt-imageio-common and ovirt-imageio-daemon? >> > I want to add these requirements to vdsm and I am not sure how to >> verify it. >> >> This searches for a certain package in a certain repo: >> >> repoquery --repofrompath=r,http://resources.ovirt.org/repos/ovirt/ >> tested/master/rpm/el7 >> --repoid=r >> <http://resources.ovirt.org/repos/ovirt/tested/master/rpm/el7--repoid=r> >> list '*imageio*' >> >> You can change the url slightly to check for other distros and oVirt >> versions. >> >> -- >> Barak Korren >> RHV DevOps team , RHCE, RHCi >> Red Hat EMEA >> redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted >> _______________________________________________ >> Infra mailing list >> [email protected] >> http://lists.ovirt.org/mailman/listinfo/infra >> > > Same thing really, but I like to navigate to http://plain.resources. > ovirt.org/repos/ovirt/tested/master/rpm/ and poke around in the browser. > > > _______________________________________________ > Infra mailing list > [email protected] > http://lists.ovirt.org/mailman/listinfo/infra > > -- DANIEL BELENKY RHV DEVOPS EMEA VIRTUALIZATION R&D <https://red.ht/sig>
_______________________________________________ Infra mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/infra
