RPM Community Forums

Mailing List Message of <rpm-users>

Re: Piping a rpm package into rpm command

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 04 Mar 2008 - 14:47:38 CET
Message-Id: <1E6ACD0F-439C-494A-8EA8-87B06ED08F20@mac.com>

On Mar 4, 2008, at 5:48 AM, Stefan Westmeier wrote:

> Hi,
>
> in the embedded environment for which we are evaluating RPM for,  
> space is a very
> costly resource.
>
> So what we are actually trying to avoid is caching of the packages  
> in the file system
> and installing them right away over the network connection. Package  
> numbers will be
> between 1-20. I am not sure if this whole scenario would work over  
> the network,
> but the question came up if its possible and I try to find out. Not  
> sure if this is enough
> information about the scenario / use case we have in mind.
>

For all installs with packages > 1, a cache is going to be needed by  
rpm internally
if the packages are delivered on stdin.

>
> I must admit I did not understand the hint about package manifests.
>

The command
     rpm -Uvh file:///foo-1.2-3.noarch.rpm
is equivalent to
     echo "ffile:///oo-1.2-3.noarch.rpm" > /tmp/manifest
     rpm -Uvh /tmp/manifest
and might be implemented on a stdin pipe as
    echo "ffile:///oo-1.2-3.noarch.rpm | rpm -Uvh -

There's a chance that a stdin piped manifest is already implemented,  
I forget.

http:// and ftp:// URI handling is disabled in default configuration.
This is the strat of enabling
     echo "%_rpmgio        .ufdio"  >> /etc/rpm/macros

73 de Jeff
Received on Tue Mar 4 14:48:29 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.