RPM Community Forums

Mailing List Message of <rpm-users>

Re: Single RPM database, multiple platforms

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 03 Mar 2009 - 23:54:52 CET
Message-id: <C8629AC6-3B1A-40A8-B254-179AFF215280@mac.com>

On Mar 3, 2009, at 4:57 PM, Jeff Putsch wrote:

> Howdy,
> I'm installing custom built rpm packages for multiple platforms (CPU- 
> any-OS) on a single NFS shared filesystem. The platforms for the  
> packages are defined by CPU and OS as in the following example:

Careful, Berkeley DB needs to be built with fcntl locking __AND__
you need fcntl working across NFS for this deployment to be successful.

>   amd64-any-rhel3
>   amd64-any-rhel4
>   sparc64-any-solaris8
> etc.
> Installation is working quite well. With my initial test packages I  
> can have the following packages simultaneously installed:
>  foo-1.0-1.amd64-rhel4.rpm
>  foo-1.0-1.amd64-rhel3.rpm
>  foo-1.0-1.sparc64-solaris8.rpm
> I'm hitting a snag when it comes to removing the packages:
> rpm -e foo
> yields an error: "foo-1.0-1.amd64 specifies multiple packages.
> I know I can use "--allmatches" to remove all the "foo" packages,  
> but let's assume I want to remove ONLY the amd64-rhel3 package. How  
> do I do that?

Hmmmm, either
	rpm -e foo-1.0-1.amd64-rhel3
	rpm -e foo-1.0-1.amd64-rhel3
would be the command if you truly had distingushed architectures.

More likely, you really have two instances of foo-1.0-1.amd64  
installed, and
	rpm -e --allmatches foo.amd64
is what is needed.

73 de Jeff
Received on Wed Mar 4 01:13:41 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.