1

If we install the Red Hat System then can we compile the other distros of linux on the Red Hat server system? If so, please provide me the tutorials and links.

  • 2
    Please edit your question and explain what you want to do. Do you want to install multiple distros on one computer? What does compiling have to do with it? If all you need is multiple operating systems on the same machine, try searching google for "dual boot". – terdon Apr 23 '14 at 10:43
  • What do you mean by compile? debian packages come in .deb format and fedora packages come in .rpm format. From what I understand, your question is more like can we use .exe file for installation in a red hat system, which obviously is not possible. – Ramesh Apr 23 '14 at 16:58
0

First If by that you mean creating a custom Ubuntu or other distros yes you can and this action is not entirely distro-specific (i.e in your case Redhat).
For that you could use two diffrerent approaches. Either use automation tools such as linuxcoe and other different tools or go native and start by LFS (Linux From Scratch). Either way you have three things to consider:

  1. Your kernel
  2. Your GUI
  3. You distribution system

Build your own distro

For the third option you could use other distros tools also (or write your own)

Or you meant to compile codes for other platforms which is something else and has more to do with your make and build environment and coding skills (writing config files for example). you code do it in Jail env. or Virtual machine if you like.

Or perhaps you meant to access other distros inside a running RedHat.
In this case what you should consider the most is the arch of the Host and target system. This could be done by chrooting. Consider that you have the live image of some distro in /mnt/distro. first you should mount your /proc , /dev and /sys Then chroot to /mnt/distro.

mount -t proc proc /mnt/distro/proc
mount --rbind /sys /mnt/distro/sys
mount --rbind /dev /mnt/distro/dev

Then for chrooting part you need to specify your environment completely to avoid problems in future.

chroot /mnt/distro /bin/env -i TERM=$TERM /bin/bash 

Note: It is the base idea and the path and env would be different in your case

0

The simplest and the most proper variant today is to install a target system as a virtual guest, using any kind of virtualization (from a simple chroot through LXC and up to VirtualBox, VMWare, etc.) and then use distro-specific native tools.

You should think of some cross compilation without virtualization under very extreme circumstances.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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