thank you to fix urpmi package.
Your small howto, is a good starting point.

To summarize, "openpkg build" is a very good and small tool to maintain a build repository , and maintain all build dependencies. I use it, find it cool.

But, i can use urpmi to deploy binary repository on multiple host in a simple manner. (ex: per host command or parallel mode). I agree with you, about the lots of dependencies (not realy fine in a bootstrap or small mode).

urpmi support only  install/upgrade/remove/query options on rpm

But, you can specify 2 options for playing with src.rpm :
# after creating "binary media & source media".
# extract source rpm in your %{sourcedir}
$ urpmi --install-src my.src.rpm

# install BuildPreReq dependencies for source rpm in your %{sourcedir}
$ urpmi --src my.src.rpm

# install rpm on a group of hosts (parallel)
$ echo "grplocal:ssh:host1:host2:host3" >> %{prefix}/etc/urpmi/parallel.cfg
$ master_host: urpmi --parallel grplocal myrpm

I will test the new version.


Ralf S. Engelschall wrote:
On Tue, Nov 14, 2006, Ralf S. Engelschall wrote:

[...]
BTW, can you give a short step-by-step on how to actually _USE_ URPMI?
I mean, I expect that one have to place RPMs (binary only?) into a
location, create some sort of an index there and then configure the
location somewhere on the client side and use some urpmi commands to
fetch and install packages. Right? But what are the actual commands
involved here? Can you be so kind and post a short summary use of URPMI
for OpenPKG?
[...]

Ok, here is what I came up until now:

# server side: prepare distribution media
$ mkdir /tmp/myrpm
$ mkdir /tmp/myrpm/pubkey
$ cp /from/somewhere/*.rpm /tmp/myrpm
$ urpmi.genhdlist --dest /tmp/myrpm

# client side: add distribution media
$ urpmi.addmedia myrpm /tmp/myrpm with hdlist.cz
$ urpmi.update myrpm

# client side: some queries
$ urpmq --list-media
$ urpmq --fuzzy somepackage
$ urpmq -i somepackage
$ urpmq -d somepackage
$ urpmf somefile

# client side: install package
$ urpmi somepackage

# client side: remove package
$ urpme somepackage

# client side: update all packages
$ urpmi.update -a
$ urpmi --update --auto-select

# client side: remove distribution media
$ urpmi.removemedia myrpm

More or less just copy & pasted from some howtos flying around the net
plus some quick local tests. I really would like that someone tests
this URPMI stuff in more detail and find out whether it is a suitable
solution for deployment of binary RPMs. Or did I miss something and URPM
also supports source RPMs?

PS: What I still find nasty is that the whole URPMI stuff has lots
    of dependencies and this way just works for OpenPKG instances with
    lots of things and not for bootstrapping those instances. Here our
    "openpkg build" tool is a lot nicer as it doesn't require anything
    beside the OpenPKG bootstrap package...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org




--
Philippe Libat: [EMAIL PROTECTED]
<<Les choses ne changent pas.
Change ta façon de regarder, cela suffit>>, Lao Tseu
Key fingerprint = E6FF EEFD 5DD6 52C2 0706  4E49 251E 5C09 7F29 71C3
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to