Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 04-11-2006, 03:42 AM   #1
Registered: Oct 2005
Location: Rezekne, Latvia
Distribution: LFS
Posts: 38

Rep: Reputation: 15
Stripping, removing, uninstalling - how to?

I have finished my first LFS. Now I am looking to BLFS. The problem is that I need a second - lightweight version of LFS, some kind of distribution to give people to try it out (as a QEMU disk image ar Live CD for example). I know that LFS is source based and it will stay as such for my development and testing but I would like to have trial version which has only some minmal tools to launch everything I have built.
What should I remove from LFS copy to make it lightweight? I know that I do not need GCC and any compiling tools, also maybe all the static libraries can be removed? What eles can I remove - and the hardest part - how to find all those components that are safe to remove?
Does those packages have some "make uninstall" or something like that? Or I should run some system monitor, reinstall packages and look at system monitor logs to see which files are created/modified?

And also - if I built everything without any CFLAGS and optimizations - how can I know, what kind of CPU are my programs built for (is it true that they are automatically optimized for CPU they were built on? If not - what packages should I rebuilt to optimize them and how to set CFLAGS?).
Uff, enough questions, maybe too much at once, sorry, I am just a really curious man.

Old 04-20-2006, 11:21 PM   #2
LQ Newbie
Registered: Apr 2006
Location: Kirksville, Missouri, USA
Distribution: gentoo / slackware
Posts: 7

Rep: Reputation: 0
Not to sidestep your original question, but if you are looking to put an LFS install on a cd you really shouldn't need to cut anything since a full LFS install is only around 400 megabytes (still plenty small enough to fit on a cd...). The gcc install for instance isn't going to be taking up any system resources such as RAM or CPU time so it really isn't going to matter until you have installed a fairly hefty amount of further software.

Probably the safest way to not have compiler software is to start fresh with your /tools and just not compile or install compiler software at all. Then I suppose (hypothetically) that one could continue the BLFS book using the compiler in /tools ... (just make sure that you still have /tools/bin in the $PATH environment variable... to look type "echo $PATH" if it isn't there say "export PATH=$PATH:/tools/bin")

Probably the most hazardous way to uninstall your existing compiler software would be to do a little rm -rf hackjob on your libraries... Personally I would avoid this but if you do resort to it: 1) make sure you back everything up and 2) try not to delete anything important

oh and btw if you want to mess with a live cd look into "isolinux" (google it) ... it's the bootloader for CDs that most install/live CDs use (including the LFS Live CD and Knoppix ).

Hope that was helpful...

Last edited by professorllama; 04-20-2006 at 11:25 PM.
Old 04-21-2006, 01:12 PM   #3
Jacky Quah
LQ Newbie
Registered: May 2005
Posts: 28

Rep: Reputation: 15
or perhaps static link when compile the source ?
Old 05-01-2006, 05:46 PM   #4
Registered: Oct 2005
Location: Rezekne, Latvia
Distribution: LFS
Posts: 38

Original Poster
Rep: Reputation: 15
OK, it seems you are right, the best is to build a new LFS. Only - I have a bit doubt what packages do I need from all the LFS base stuff? I know that I do not need GCC, Expecct, DejaGNU. What else can be skipped out (for being too specific or rarely needed)? I want to leave only the things for building a typical desktop OS with a light GUI (maybe fluxbox, but that will be later in the BLFS).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing/Uninstalling Fedora Core 2 strimp099 Linux - General 1 12-25-2004 06:56 PM
uninstalling/removing jaakkop Linux - Software 2 11-02-2004 10:38 AM
Uninstalling/removing a bad make gvaught Linux - Software 1 12-02-2003 01:13 PM
Removing/Uninstalling Programs streetbmx Linux - Newbie 4 05-09-2003 01:39 PM
Removing/uninstalling programs Katrix Linux - Software 1 10-07-2001 08:15 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:33 AM.

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