Hi: I want to make a linux OS based on Centos recently. I searched on Google several days, but still can't find the whole source code of Centos. Is there any way to get the whole source code of Centos, like android, just do a few command and then get the image files
--------------------------------
On Wed, Jan 21, 2015 at 9:01 PM, Rock Lee rocklee_104@sina.com wrote:
Hi:
I want to make a linux OS based on Centos recently. I searched on
Google several days, but still can't find the whole source code of Centos. Is there any way to get the whole source code of Centos, like android, just do a few command and then get the image files
The short answer is "no". CentOS is mostly a clean rebuild of RHEL, and for their latest release, RHEL has decided to publish the publicly available source code at https://git.centos.org/. Setting up the build tree to build the whole thing from source, including the build environments, is a lot of time and resources that I suspect you do *not* want to invest months in, and it takes hundreds if not thousands of hours on a modest system to build that while thing from scratch. Basically, you can do it, but you'll always be chasing updates and errata and minor copyright or trademark or license issues to keep it maintained.
There are several free, quite usable rebuilds of RHEL, including CentOS and Scientific Linux (which have different policies about add-on tools). So I urge you not to go there: if you need a few packages modified, it should be straightforward to use "mock" to build packages, add a yum repository at OS installation time, and pull the relevant packages from your personal repository. This approach is very common and can work very well. I use it to publish samba 4.1.x with full domain controller features activated for RHEL 6 based operating systems.
On Wed, Jan 21, 2015 at 9:01 PM, Rock Lee rocklee_104@sina.com wrote:
Hi:
I want to make a linux OS based on Centos recently. I searched on
Google several days, but still can't find the whole source code of Centos. Is there any way to get the whole source code of Centos, like android, just do a few command and then get the image files
The short answer is "no". CentOS is mostly a clean rebuild of RHEL, and for their latest release, RHEL has decided to publish the publicly available source code at https://git.centos.org/. Setting up the build tree to build the whole thing from source, including the build environments, is a lot of time and resources that I suspect you do *not* want to invest months in, and it takes hundreds if not thousands of hours on a modest system to build that while thing from scratch. Basically, you can do it, but you'll always be chasing updates and errata and minor copyright or trademark or license issues to keep it maintained.
There are several free, quite usable rebuilds of RHEL, including CentOS and Scientific Linux (which have different policies about add-on tools). So I urge you not to go there: if you need a few packages modified, it should be straightforward to use "mock" to build packages, add a yum repository at OS installation time, and pull the relevant packages from your personal repository. This approach is very common and can work very well. I use it to publish samba 4.1.x with full domain controller features activated for RHEL 6 based operating systems. _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
Hi, Nico & Stephen: Thanks for your reply. It is really a daunting work to build the whole thing. Actually, what I need to modify are linux kernel and several tools, like e2fsprogs, for example. After build my personal packages, how to add a yum repository at OS installation time? BTW, when installing the OS, how can I format disk with my personal tools?
-------------- Rock Lee
On Sat, Jan 24, 2015 at 11:01 PM, Rock Lee rocklee_104@sina.com wrote:
On Wed, Jan 21, 2015 at 9:01 PM, Rock Lee rocklee_104@sina.com wrote:
Hi:
I want to make a linux OS based on Centos recently. I searched on
Google several days, but still can't find the whole source code of Centos. Is there any way to get the whole source code of Centos, like android, just do a few command and then get the image files
The short answer is "no". CentOS is mostly a clean rebuild of RHEL, and for their latest release, RHEL has decided to publish the publicly available source code at https://git.centos.org/. Setting up the build tree to build the whole thing from source, including the build environments, is a lot of time and resources that I suspect you do *not* want to invest months in, and it takes hundreds if not thousands of hours on a modest system to build that while thing from scratch. Basically, you can do it, but you'll always be chasing updates and errata and minor copyright or trademark or license issues to keep it maintained.
There are several free, quite usable rebuilds of RHEL, including CentOS and Scientific Linux (which have different policies about add-on tools). So I urge you not to go there: if you need a few packages modified, it should be straightforward to use "mock" to build packages, add a yum repository at OS installation time, and pull the relevant packages from your personal repository. This approach is very common and can work very well. I use it to publish samba 4.1.x with full domain controller features activated for RHEL 6 based operating systems. _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
Hi, Nico & Stephen: Thanks for your reply. It is really a daunting work to build the whole thing. Actually, what I need to modify are linux kernel and several tools, like e2fsprogs, for example. After build my personal packages, how to add a yum repository at OS installation time? BTW, when installing the OS, how can I format disk with my personal tools?
I think this should be in the "users" discussion list, as it's not so much for developing CentOS as it is sys-admin configuration information. But that's just me.
The easy way to do this is to use kickstart and use '%pre' statements to download as needed and apply your personal tools. That way, you don't need to burn a new DVD image. You can just pre-set the partitioning. I've done this with great success since...... Red Hat 5.2. Not RHEL or CentOS 5.2, but Red Hat 5.2 in. Oh, Oh, my, Back in 1999, when I used it to redeploy operating systems on hardware with 2 disks, by freeing up he second disk, installing the new OS there, rebooting with it, and pushing the OS back to the first disk.
You can do a *lot* of non-anaconda supported work with %pre, %post, and %post --nochroot operations in kickstart. This not only includes activating an additional yum repository, but even installing third party software that is not available via yum, or running tools like "chef" or "cfengine" to complete local configurations. As long as your packages don't conflict with the CentOS base installation, you can do the yum setup and your own package deployments after the base install is done.
If you need a different kernel for hardware support, that takes more work. Will you need that?
On Sat, Jan 24, 2015 at 11:01 PM, Rock Lee rocklee_104@sina.com wrote:
On Wed, Jan 21, 2015 at 9:01 PM, Rock Lee rocklee_104@sina.com wrote:
Hi:
I want to make a linux OS based on Centos recently. I searched on
Google several days, but still can't find the whole source code of Centos. Is there any way to get the whole source code of Centos, like android, just do a few command and then get the image files
The short answer is "no". CentOS is mostly a clean rebuild of RHEL, and for their latest release, RHEL has decided to publish the publicly available source code at https://git.centos.org/. Setting up the build tree to build the whole thing from source, including the build environments, is a lot of time and resources that I suspect you do *not* want to invest months in, and it takes hundreds if not thousands of hours on a modest system to build that while thing from scratch. Basically, you can do it, but you'll always be chasing updates and errata and minor copyright or trademark or license issues to keep it maintained.
There are several free, quite usable rebuilds of RHEL, including CentOS and Scientific Linux (which have different policies about add-on tools). So I urge you not to go there: if you need a few packages modified, it should be straightforward to use "mock" to build packages, add a yum repository at OS installation time, and pull the relevant packages from your personal repository. This approach is very common and can work very well. I use it to publish samba 4.1.x with full domain controller features activated for RHEL 6 based operating systems. _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
Hi, Nico & Stephen: Thanks for your reply. It is really a daunting work to build the whole thing. Actually, what I need to modify are linux kernel and several tools, like e2fsprogs, for example. After build my personal packages, how to add a yum repository at OS installation time? BTW, when installing the OS, how can I format disk with my personal tools?
I think this should be in the "users" discussion list, as it's not so much for developing CentOS as it is sys-admin configuration information. But that's just me.
The easy way to do this is to use kickstart and use '%pre' statements to download as needed and apply your personal tools. That way, you don't need to burn a new DVD image. You can just pre-set the partitioning. I've done this with great success since...... Red Hat 5.2. Not RHEL or CentOS 5.2, but Red Hat 5.2 in. Oh, Oh, my, Back in 1999, when I used it to redeploy operating systems on hardware with 2 disks, by freeing up he second disk, installing the new OS there, rebooting with it, and pushing the OS back to the first disk.
You can do a *lot* of non-anaconda supported work with %pre, %post, and %post --nochroot operations in kickstart. This not only includes activating an additional yum repository, but even installing third party software that is not available via yum, or running tools like "chef" or "cfengine" to complete local configurations. As long as your packages don't conflict with the CentOS base installation, you can do the yum setup and your own package deployments after the base install is done.
If you need a different kernel for hardware support, that takes more work. Will you need that?
Hi, Nico: Thanks for your advice. I've implemented a filesystem based on ext3 fs. In order to test the performance of this fs as root fs, I have to install a particular kernel and mkfs tools to serveral PC. Your advice is extremely helpful, thanks again.
-------------- Rock Lee
On 01/24/2015 10:49 PM, Rock Lee wrote:
Thanks for your advice. I've implemented a filesystem based on ext3 fs. In order to test the performance of this fs as root fs, I have to install a particular kernel and mkfs tools to serveral PC. Your advice is extremely helpful, thanks again.
Presumably, the normal installer won't be able to read your filesystem even if you download your own kernel and tools in %pre.
You could create a driver disk to add your filesystem driver as a module to the normal installer, in addition to the advice you were already given: http://www.emeneker.com/modx/index.php?id=26
Or you could use pungi to compose a new installer entirely -- one that contains your kernel module.
On Mon, Jan 26, 2015 at 4:02 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
On 01/24/2015 10:49 PM, Rock Lee wrote:
Thanks for your advice. I've implemented a filesystem based on ext3 fs. In order to test the performance of this fs as root fs, I have to install a particular kernel and mkfs tools to serveral PC. Your advice is extremely helpful, thanks again.
Presumably, the normal installer won't be able to read your filesystem even if you download your own kernel and tools in %pre.
"The normal installer", probably not. But that's a scriptable operation in %pre, just use parted or relevant tools to clear and create partitions, and the new tool to make the filesystem, and tell anaconda to use what it finds.
Using anaconda's filesystem creation tools are kind of like pushing a rope. It kind of/sort o works, except when it doesn't.
You could create a driver disk to add your filesystem driver as a module to the normal installer, in addition to the advice you were already given: http://www.emeneker.com/modx/index.php?id=26
Or you could use pungi to compose a new installer entirely -- one that contains your kernel module.
Or he can use '%pre". I've certainly done this in test environments where building up a new boot image or installation CD image was a lot more work than I wanted to spend.
On 21 January 2015 at 19:01, Rock Lee rocklee_104@sina.com wrote:
Hi:
I want to make a linux OS based on Centos recently. I searched on
Google several days, but still can't find the whole source code of Centos. Is there any way to get the whole source code of Centos, like android, just do a few command and then get the image files
The source code in src.rpm format is stored at vault.centos.org. For 7.0.1406 it is at:
http://vault.centos.org/7.0.1406/os/Source/SPackages/
http://vault.centos.org/6.6/os/Source/SPackages/
etc
For source code you can get from git, as Nico says it is at https://git.centos.org/
CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel