LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-22-2012, 10:02 PM   #1
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Forking a Distro


Don't worry, I am not interested in creating a fork of a Linux distro for public use, this is more an academic question.

CentOS for example is a fork of RHEL. CentOS strips all trademark stuff, changes wallpapers and has it's own repos.

Technically speaking, how would you create a fork? Would you start with the Install disk ISO and some how change it on the disk, or would you start with an already installed system and change wallpapers/pointers to repos then some how create an install disk from it?

Are installers for systems like RHEL or Mandriva etc... GPL so that you can use them, or does a distro like CentOS create it's own installer. I know these questions are kind of broad, but I have just always wondered what the technical process of forking a distro is.
 
Old 04-22-2012, 10:14 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Speaking from my own experience, and I am by no means done yet, I have my own machines set up exactly how I want them. I then use LiveBuild (a set of scripts from Debian) to build it from scratch using my modifications.
 
Old 04-22-2012, 10:31 PM   #3
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Original Poster
Rep: Reputation: 47
That looks like an interesting tool. I wonder if Ubuntu started out with using LiveBuild? Are there any other ways that people know of.
 
Old 04-22-2012, 10:34 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
LiveBuild is only new but it is based on LiveHelper which was in Debian Lenny at least maybe earlier. I really don't know how Ubuntu started doing it but I would assume they just used a modified Debian Installer.
 
Old 04-23-2012, 04:10 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Using tools like LiveBuild, Remastersys, ... is technically not making a fork, but a respin or remix, since you still use the original distro's repositories and packages. To make a fork you have to use your own, independent repos and packages.

As I understand it, if you want to do a fork, take the packages that you want to have in your distro by default and set up a repo with them. From that point on you yourself (or your team of developers/maintainers) are in charge of patching the software, building packages with newer versions and add new packages to the repo.
CentOS may not really fit into that definition, but that is because their specific aim is to compatible to RHEL.
 
Old 04-23-2012, 04:51 AM   #6
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by TobiSGD View Post
Using tools like LiveBuild, Remastersys, ... is technically not making a fork, but a respin or remix, since you still use the original distro's repositories and packages. To make a fork you have to use your own, independent repos and packages
You haven't used LiveBuild then have you? You can use your own repositories and 3rd party repositories. You do not have to use Debian repositories at all if you don't want or need to.
 
Old 04-23-2012, 09:04 AM   #7
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by TobiSGD View Post
Using tools like LiveBuild, Remastersys, ... is technically not making a fork, but a respin or remix, since you still use the original distro's repositories and packages. To make a fork you have to use your own, independent repos and packages.

As I understand it, if you want to do a fork, take the packages that you want to have in your distro by default and set up a repo with them. From that point on you yourself (or your team of developers/maintainers) are in charge of patching the software, building packages with newer versions and add new packages to the repo.
CentOS may not really fit into that definition, but that is because their specific aim is to compatible to RHEL.
So, in this example of not using a tool like the ones mentioned, how would you create a copy of a distro with different wallpapers/different software installed etc...?

Would you start with an installed system, install all software that you want, and remove anything that you don't want, change the wallpaper, change the repos, then do what? Make an ISO of your installed system and somehow write an installer to add everything to another computer? Sorry if this question seems vague, but I have always wondered, and I might even want to try it on my own computer, just for the educational aspect of it.
 
Old 04-23-2012, 01:55 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by lewisforlife View Post
Would you start with an installed system, install all software that you want, and remove anything that you don't want, change the wallpaper, change the repos, then do what? Make an ISO of your installed system and somehow write an installer to add everything to another computer?
That would be one way to do it. Since many of the remastering tools and live-installers are open-source and configurable it is not really that hard to adapt them to your needs.
Another way would be to use a normal installer from a different distro, like Debian's installer or Red Hat's Anaconda. Repackage the software that should be installed by default so that way that your changes are already integrated. Make packages of your themes, wallpapers, whatever, then create an install medium from the packages.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why forking? charlitos Programming 16 03-09-2009 09:58 PM
Creating/Forking a Customized Distro? testforechozero Linux - Distributions 4 02-28-2007 04:23 AM
Forking in Makefile ! How ? ik_nitk Linux - Software 2 01-18-2007 08:24 AM
Forking a Project posto Programming 3 08-29-2005 05:39 PM
need help forking pings penguinboy Programming 2 09-12-2002 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration