Re: Yum and SRPMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-11-28 at 09:26 +0800, Yuan Yijun wrote:
> What if include rpm-build in yum, like apt-build, or apt-get build
> does? Maybe yum could become another emerge or pkg_add or so. :p

Danger will robinson.  Feature creep.

Yum downloads packages/updates from configured repositories, resolves
deps, and installs those packages.  Anything else is above and beyond
yum.  Other things can use yum libraries to accomplish that bit of task,
but must provide everything else.

Now, with the new libraries that Seth is cranking out, a python script
can import the yum module, do:

import yum

foo = yum.YumBase()
foo.doGenericSetup()

Then you can setup all kinds of things like

foo.install(name='bar')

and

foo.update()

and when you are done lining up these yum actions, you can

foo.runTransaction()

to run it all.  Yum will be very easy to tie into for doing your grander
than yum actions.

(thanks seth for the examples on IRC that I copied here)

-- 
Jesse Keating RHCE      (geek.j2solutions.net)
Fedora Legacy Team      (www.fedoralegacy.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
 
Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux