Easy way of testing packages?

Adam Williamson awilliam at redhat.com
Mon Jun 4 06:51:02 UTC 2012

On Sat, 2012-06-02 at 17:22 +0200, Stefan Schulze Frielinghaus wrote:
> On Sat, 2012-06-02 at 17:00 +0200, Kevin Kofler wrote:
> > Stefan Schulze Frielinghaus wrote:
> > > is there an easy way to test packages except of using
> > > 
> > > $ yum --enablerepo=updates-testing update <package>
> > 
> > yum install yum-security
> > yum --enablerepo=updates-testing --advisory=FEDORA-2012-nnnn update
> Ah this looks good!
> However, I have one question left. Does the yum plugin download the
> package directly from koji or do I have to wait until the package is
> distributed to all mirrors (because the command still mentions the
> updates-testing repo)?

It uses the repos defined in yum. So updates-testing.

If you're in a hurry to get an update earlier, you can use koji or bodhi
command-line tools to download specific NEVRs or (in the case of bodhi)
update IDs.


bodhi -D FEDORA-2012-7716
bodhi -D mesa-8.0.2-8.fc17
koji download-build --arch=x86_64 --arch=noarch 321768
koji download-build --arch=x86_64 --arch=noarch ocaml-3.12.1-9.fc17

see 'man koji' and 'man bodhi' for more details.

If you do this regularly it's probably easiest to set up a local 'side'
repo - I have ~/local/repo/x86_64 and a file in /etc/yum.repos.d/ to
make that directory a repository (with a very short metadata expiry
time). I download the packages to that path, run 'createrepo .', and
then use yum to install the packages. For occasional use, you can just
run yum directly on the packages; it's getting quite good at that. e.g.
running 'yum update *' on a directory full of .rpms will do what you'd
(probably) expect - for any of those packages you have installed, it'll
update them; others will be left out.

Hope that helps...
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora

More information about the devel mailing list