LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2009, 07:26 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Remove GCC???


Ok I won't use GCC on my main distro so how do I remove it?

I am using a LFS homemade distro and I used GCC to compile the rest of my programs but since GCC isn't necessary anymore I think I should remove it.

Do you think I should leave GCC in its place or remove it?

GCC is HUGE and having it removed would certainly save a bunch of space.

My goal someday is to make a VERY minimalistic linux recovery distro that can run off of 2 1.5 MB floppy disks but making a 3 MB linux recovery distro won't be easy. lol

It might even be impossible. lol Who knows! lol

I would have to use the 1.0 linux kernel versions to make one that small. lol

I really like LFS because you can do so much with it and still make it really small. lol

To me a linux distro has to be really small and fast otherwise its useless to me.

Its not about the eye candy looks of the OS its about getting more done in less time. lol
 
Old 08-14-2009, 09:08 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
If the goal is to make the OS as tiny as possible, then by all means, removing GCC and/or all G?? compiler pieces would be a step in the right direction. If it isn't going to be used at all, there's no reason to keep it installed.

Did you engineer any sort of package management in your LFS design? If not, then you'd need to manually locate all of the files, folders, man pages, documentation, etc. and remove them. There are quite a few files involved!

Good luck!

PS - For what it's worth, unless you're absolutely sure that a ~1.0 kernel will do all you need, on the target platform, you may want to consider a newer kernel.

Sasha
 
Old 08-14-2009, 09:55 PM   #3
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,405

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by David2010 View Post
Ok I won't use GCC on my main distro so how do I remove it?

I am using a LFS homemade distro and I used GCC to compile the rest of my programs but since GCC isn't necessary anymore I think I should remove it.

Do you think I should leave GCC in its place or remove it?

GCC is HUGE and having it removed would certainly save a bunch of space.

My goal someday is to make a VERY minimalistic linux recovery distro that can run off of 2 1.5 MB floppy disks but making a 3 MB linux recovery distro won't be easy. lol

It might even be impossible. lol Who knows! lol

I would have to use the 1.0 linux kernel versions to make one that small. lol
The latest 2.2 kernel with a busybox environment should work on a floppy (Their already exist a few distributions doing this).

1.0 is only useful for historical/educational purposes.


Quote:
Originally Posted by David2010 View Post
I really like LFS because you can do so much with it and still make it really small. lol

To me a linux distro has to be really small and fast otherwise its useless to me.

Its not about the eye candy looks of the OS its about getting more done in less time. lol
Smaller isn't always faster.
In this case it will only benefit you for memory space, not speed.
Such a small OS will also lack most of todays functionality.
 
Old 08-14-2009, 10:02 PM   #4
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
Yeah, it doesn't sound like you'll be able to do much with it.
 
Old 08-14-2009, 11:03 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You could compile packages on a host system to a target filesystem hierarchy. Start with a 2.2 or 2.4 kernel and build it with as much removed as possible for your computer to keep it as slim as possible.

Instead of creating a distro, you are building a kernel and initrd file. If the the kernel is still to big on the first floppy, see if you can build something as a module instead of built in. That will move the module from the first floppy (kernel) to the second (initrd).
 
Old 08-14-2009, 11:22 PM   #6
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
I came up with another crazy idea.

What If I just used one floppy disk that would use wget to download the rest of the needed files into RAM and then boot the downloaded linux distro from there?

When it powered down I create a custom runtime script that would essentially put it in a VERY low power state but still keep it in ram that way the next day when I needed to use it again it would still be in ram.

I have a VERY fast internet connection so that isn't a problem.

I think I could make a 1.5 MB linux distro capable of booting up and downloading the rest of the linux distro. lol

The problem here is my HDD and CD-ROM drive are VERY slow and use a LOT more electricity then they really should while the ram is very efficient.

I can't afford to buy the solid state RAM Hard drives so thats out of the option. lol

I am just trying to find a way to keep the old computer VERY efficient while using as little of electricity as possible. lol
 
Old 08-14-2009, 11:32 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
While an SSD hard drive may be not in the budget, have you considered putting your distro onto a compact Flash card or SD ram card? USB card readers are pretty cheap, and the cards aren't that expensive either. Or consider using a 1,2, or 4Gib USB stick, provided your machine could boot from either of these devices.

PS - creating ones own distro could be fun, but while you're at it, maybe looking at some of the methods DSL linux does, such as loading into RAM, could give you some tips or ideas. DSL is much larger than your planned distro, but examining it might give you some ideas

Sasha

Last edited by GrapefruiTgirl; 08-14-2009 at 11:34 PM.
 
Old 08-15-2009, 12:42 AM   #8
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by GrapefruiTgirl View Post
While an SSD hard drive may be not in the budget, have you considered putting your distro onto a compact Flash card or SD ram card? USB card readers are pretty cheap, and the cards aren't that expensive either. Or consider using a 1,2, or 4Gib USB stick, provided your machine could boot from either of these devices.

PS - creating ones own distro could be fun, but while you're at it, maybe looking at some of the methods DSL linux does, such as loading into RAM, could give you some tips or ideas. DSL is much larger than your planned distro, but examining it might give you some ideas

Sasha
I have seen the distro and its neat but over half of the programs I would never use.

The bios wont boot from USB so thats not an option unless there was a way to make a boot disk on a floppy disk that would boot the OS from the USB flash drive.
 
Old 08-15-2009, 06:57 AM   #9
:::
Member
 
Registered: Aug 2009
Distribution: slackware 12.2
Posts: 51

Rep: Reputation: 17
lol

Quote:
It might even be impossible. lol Who knows! lol

I would have to use the 1.0 linux kernel versions to make one that small. lol

I really like LFS because you can do so much with it and still make it really small. lol

To me a linux distro has to be really small and fast otherwise its useless to me.

Its not about the eye candy looks of the OS its about getting more done in less time. lol
lol. i don't know, lol, why you lol all the time, lol, but, lol, it's funny. lol

now to your question, lol.
Quote:
Originally Posted by David2010 View Post
Ok I won't use GCC on my main distro so how do I remove it?
delete it, lol. :::
 
Old 08-15-2009, 07:02 AM   #10
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
Code:
lol -lmao | sort
Then delete rotflmao from the /usr/twinkie directory.

Last edited by joeBuffer; 08-15-2009 at 07:05 AM.
 
Old 08-15-2009, 07:34 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,565
Blog Entries: 56

Rep: Reputation: Disabled
Have a look at tinycore linux:
http://tinycorelinux.com/

lol lol lol
P.S.
lol lol lol

Last edited by brianL; 08-15-2009 at 07:39 AM. Reason: not enough lols
 
Old 08-15-2009, 10:43 AM   #12
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by brianL View Post

lol lol lol
P.S.
lol lol lol
O.O

Dont mock people! Its not nice. xD
 
Old 08-15-2009, 11:03 AM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,565
Blog Entries: 56

Rep: Reputation: Disabled
You're right. It isn't nice. lol
 
Old 08-15-2009, 02:38 PM   #14
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
I think I am going to keep GCC installed just in case I need to recompile a package to fix a problem later on.
 
Old 08-15-2009, 03:24 PM   #15
:::
Member
 
Registered: Aug 2009
Distribution: slackware 12.2
Posts: 51

Rep: Reputation: 17
Quote:
Originally Posted by David2010 View Post
O.O

Dont mock people! Its not nice. xD
sorry, no offence intended. the lols were just funny...
 
  


Reply


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
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 05:29 AM
How to remove decoration characters from GCC output? chandru.in Programming 2 11-27-2007 10:39 PM
# yum remove dbus - trying to remove the whole system... atnonis Fedora 4 11-23-2007 07:31 AM
C-cpp forgets to remove gcc-keywords and to expand __restrict-macro bramadams Fedora 0 02-11-2005 05:53 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration