Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have Red Hat Enterprise Linux servers at work place. However we dont have Red Hat Linux desktops. So I used CentOS 5.4 to compile the Mono sources and generated the Mono framework for CentOS and tested with some sample codes and I am satisfied. I want to transfer this compiled framework to Red Hat Enterprise Linux 5.

How Can I do that? Do I have to compile the Mono framework statically or do I have to copy the linked libraries as well? I am not familiar with linux much. Any help is highly appreciated.

share|improve this question

migrated from Jun 20 '10 at 6:31

This question came from our site for professional and enthusiast programmers.

CentOS is a binary-compatible mirror of Red Hat Enterprise Linux. So if your desktop and the server line up exactly (32- vs 64-bit, same version [RHEL 5 update 4 vs CentOS 5.4], same RPMs installed), then it should be possible to just take the files you built on the CentOS machine and copy them to the corresponding location on the Red Hat machine, and it should just work.

Note that, ideally, you would build an RPM on the CentOS machine and then install the on the RHEL machine. This way you don't have to worry about if you copied all the right files, and the RPM should encode enough dependency information to prevent the install from succeeding if the OS is incompatible.

share|improve this answer
@zach Thank you for your solution. how can I build RPM when I have only binaries? – funwithcoding Mar 7 '10 at 23:25
First you'd need to copy all the binaries into a temporary directoy, but still in the same file structure as when installed (e.g. /home/user/tmp-root/usr/bin/gcs, etc). Then you'd need to write an RPM spec file that doesn't do anything for the %prep, %build, and %install sections. Then you would need to write the %files section so that all the files you staged somewhere are included in the RPM. But the better way would be to just build the RPM from the mono sources---there might be a spec file included from mono upstream in the source tarball, or you can grab the one from RHEL. – Zach Hirsch Mar 7 '10 at 23:34
If CentOS doesn't have it then RHEL won't have it. Grab the Fedora SRPMs and rebuild. – Ignacio Vazquez-Abrams Mar 7 '10 at 23:37
there is no SRPM too, however spec file is provided in tarball. With lots of iterations,I was able to generate the binary RPM. thank you – funwithcoding Mar 8 '10 at 12:22

CentOS is binary-compatible with RHEL at the same version, so after making sure that the dependencies are installed, copying the binaries will be enough.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.