Package is intended for a different operating system on doing yum install an rpm

HI,
I generated an rpm using the maven rpm plugin on Mac and then transfered it to a linux machine. on doing yum install i got the following error message :
Transaction check error : Package codeSnippet is intended for a different operating system
How can i get rid of this ?
It must be possible to build an rpm package on Mac and then run the same on a linux machine...

Thanks
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rick HobbsRETIREDCommented:
You need to generate the package on the system you are going to install it on.
0
Rohit BajajAuthor Commented:
is there no way i can generate it on mac and then run anywhere. i heard about noarch rpm. but my rpm is also noarch. still it doesnt work.
0
gheistCommented:
You can make a virtual machine with linux and build RPMs there.

"different operating system" is triggered when osnum does not match in RPM header.
Which means that apple homebrew makes non-standard RPMs, which dont install on Linux.

This should ive some hints on how to fix up current package with hex editor:
http://refspecs.linuxfoundation.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/pkgformat.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.