RPM Community Forums

Mailing List Message of <rpm-users>

Re: Piping a rpm package into rpm command

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 03 Mar 2008 - 16:00:21 CET
Message-Id: <92BE1F9D-401F-495E-90A2-19EDC169764B@mac.com>

On Mar 3, 2008, at 9:44 AM, Stefan Westmeier wrote:

> Hi,
> just wanted to know if there is any chance that rpm packages can be  
> piped into the rpm command!?

Could be done, but there has to be some demonstrable need.

For starters, a single package on stdin is a rather naive idea. Most rpm
transactions are composed of 100's or 1000's of packages, and
stdin is just not the best input method for concatenated packages  

The issue that needs solving is that *.rpm CLI arguments are open'd
twice, the 2nd time on on a (*notify) callback, in order to permit  
media to
be changed by installers.

But an open fdno could be cached and used instead. In fact rpm used
to do exactly that until the no. of open fdno's limit was exceeded  
(and distro's
had to support multiple cd install's).

OTOH, it would not be impossibly hard to pass the paths to packages,
rather than the packages themselves, on stdin. the rpm CLI already  
package manifests, stdin could be used as an alternative manifest.

73 de Jeff
Received on Mon Mar 3 16:00:43 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.