How to create a custom CentOS or any other Linux

March 30, 2008 – 3:02 pm

I was looking for a way to make my own CentOS 5.1 CD’s with various selected packages, some which are normally located on the other CD’s and not on the first CD. For what I need, I want to keep it simple, just use one CD to install the packages I need for a minimal server.

Initially I installed CentOS 5.1 x64 on a test PC, with the packages I wanted, and only copied the packages installed from the online CentOS repos to a folder and recreated the ISO with makeisofs. The only way I could get this to work, was to copy the /root/install.log file into an excel spread sheet, from where I stripped out everything not related, and added a copy string to it (concatenate works nice for this).

While searching for answers to this problem, I found a site with a nice script to automatically scan the /root/install.log file on the installed system and copy those files to a new folder, then use createrepo to create a new repo, and makeisofs to create a new ISO file for installation.

Here’s the original website: http://lingxiang.tang.googlepages.com/createalesssizecentos5

Share/Save/Bookmark

You must be logged in to post a comment.