Re: [CONTRIB] ACCEPT: urpmi-4.8.29-20061113.src.rpm

2006-11-14 Thread Ralf S. Engelschall
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 Projectwww.openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


Re: [CONTRIB] ACCEPT: urpmi-4.8.29-20061113.src.rpm

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

 On Mon, Nov 13, 2006, PLI wrote:

  I test first the previous version 4.8.18 from your current repository,
  and then look for a newer version of urpmi at one of the mandriva cooker
  mirror.
  ftp.free.fr:/pub/Distributions_Linux/MandrivaLinux/devel/cooker/SRPMS/main/release
 
  The source is extracted from urpmi-*src.rpm, (perhaps not really the
  best way ;)

 Well, OTOH seems like the URPMI sources are available via Mandriva SRPMS
 only these days. I've now decided to switch our OpenPKG package to those
 SRPMS to be sure we get the latest stuff also in the future.

 I've now also comitted all changes based on your hints, after cleaning
 up and further improving the package. Please try the latest package from
 CURRENT now and give feedback whether all works now.

 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, I've now also added the Mandriva rpmtools stuff to our urpmi
package. There is now an urpmi.genhdlist command available which is
the missing piece for generating the index files, I think.

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

__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


Re: [CONTRIB] ACCEPT: urpmi-4.8.29-20061113.src.rpm

2006-11-14 Thread PLI

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 Projectwww.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 Projectwww.openpkg.org
Developer Communication List   openpkg-dev@openpkg.org