Installing RPM built on CentOS on Mac OS X | Unix Linux Forums | OS X (Apple)

  Unix/Linux Go Back    


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

Installing RPM built on CentOS on Mac OS X

OS X (Apple)


Tags
rpm packaging

Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-01-2012
jschnitter jschnitter is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 12 March 2012, 6:35 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Installing RPM built on CentOS on Mac OS X

I have a build process that runs on CentOS that builds RPMs for a java-based product. I'd like to be able to install these RPMs on my Mac OS X laptop for testing purposes. I don't need an RPM database to manage dependencies or previously installed packages. Consider this RPM to be a glorified tar file.

When I try to install I get a message like this:


Code:
$ rpm -vvv --dbpath /tmp/dbpath --nodeps --force -ivh test.rpm

D: ============== test.rpm
D: Expected size:      7910308 = lead(96)+sigs(180)+pad(4)+data(7910028)
D:   Actual size:      7910308
warning: package file test.rpm was skipped
D: found 0 source and 0 binary packages

I can run rpm -qlp to list the file contents of the RPM. I can run rpm2cpio to extract the contents of the RPM. This suggests that the RPM is in a valid format and is not corrupt.

I'm able to install RPMs that I build on OS X on my OS X laptop. I'm also able to install RPMs built on OS X on CentOS using the
rpm --ignoreos option.

rpm --showrc on OS X shows:

Code:
$ rpm --showrc

ARCHITECTURE AND OS:
build arch            : i386
compatible build archs: i386
build os              : darwin
compatible build os's : darwin
install arch          : i386
install os            : darwin
compatible archs      : i386
compatible os's       : darwin
optflags              : -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables


rpm --showrc on CentOS shows:


Code:
$ rpm --showrc

ARCHITECTURE AND OS:
build arch            : x86_64
compatible build archs: ia32e x86_64 noarch
build os              : Linux
compatible build os's : linux
install arch          : ia32e
install os            : Linux
compatible archs      : ia32e x86_64 em64t athlon noarch amd64 i686 i586 i486 i386 fat
compatible os's       : linux

Is there a way to determine why the package was skipped? The debug message indicates that no binary packages were found.
Sponsored Links
    #2  
Old Unix and Linux 03-12-2012
jschnitter jschnitter is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 12 March 2012, 6:35 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Disclaimer: I am not an RPM expert and what I am trying to do is not recommended. I am a build engineer and wanted to run a test install of an RPM. I found a solution that worked for me.

I ran this query to get the platform value of the rpm:

Code:
rpm -qp --queryformat "%{PLATFORM}\n" test.rpm

I then added the platform value to /etc/rpm/platform and was able to install the RPM.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need help in installing Xen on Centos 6 ahmedamer12 Red Hat 0 12-24-2011 05:44 AM
Installing centOS in i686 thegeek Linux 1 09-26-2011 03:19 PM
installing phyton in centos programAngel Red Hat 4 11-23-2010 08:10 AM
Installing CVS on Centos 5.3 mojoman UNIX for Dummies Questions & Answers 2 10-30-2009 12:07 AM
installing psybnc on CentOS wmccull Linux 0 03-05-2008 09:22 PM



All times are GMT -4. The time now is 12:04 PM.