Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Removing GCC from Knoppix< Next Oldest | Next Newest >
mikeypants Offline





Group: Members
Posts: 4
Joined: Oct. 2003
Posted: Feb. 09 2004,15:52 QUOTE

Hi all.

I had a quick question regarding a general Knoppix remaster, not necessarily specific to remastering DSL (so apologies if this seems off-topic for these boards).

I noticed that on the DSL Package listing, there is no GCC installed.  I've tried removing GCC from my Knoppix distribution, but found that it wants to take EVERYTHING with it, and not just GCC.  Being that my remaster doesn't need a compiler at all, I'd like it obliterated to save some space in my compressed KNOPPIX file.

I'm pretty sure that DSL is a Knoppix 3.1 remaster, and mine is a Knoppix 3.2 remaster (due to the fact that I need the persistent USB home directory functionality, which wasn't around in 3.1 if I recall correctly).

So, that being said, how was GCC removed from DSL?  Was it an easy task, were there dependency problems, was it a manual removal and not removed with apt, etc.?

Any help is much appreciated.  Thanks a lot.
Back to top
Profile PM WEB 
Jeremy Offline





Group: Members
Posts: 17
Joined: Feb. 2004
Posted: Feb. 12 2004,15:29 QUOTE

try apt-get remove, it should check dependency.

Still DSL is minimal, it would be easier to remaster from it. The home directory can be used with "backup" "restore" option i think.
Back to top
Profile PM 
mikeypants Offline





Group: Members
Posts: 4
Joined: Oct. 2003
Posted: Feb. 12 2004,16:17 QUOTE

Jeremy,

Thanks for the response.  This is what I've tried before though, and here's the output I get..


Code Sample
root@navi / # apt-get remove gcc-3.2-base
Reading Package Lists...
Building Dependency Tree...
The following packages will be REMOVED:
 cpp cpp-3.2 gcc-3.2-base xbase-clients
0 packages upgraded, 0 newly installed, 4 to remove and 0  not upgraded.
Need to get 0B of archives. After unpacking 4973kB will be freed.
Do you want to continue? [Y/n] n
Abort.



That's fine and dandy, but I'm pretty sure I need xbase-clients still installed.


Code Sample
root@navi / # apt-get remove gcc-3.3-base
Reading Package Lists...
Building Dependency Tree...
The following packages will be REMOVED:
 dpkg dselect fluxbox gcc-3.3-base hotplug libstdc++5 menu modutils sysvinit xbase-clients
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
 dpkg dselect (due to dpkg) sysvinit
0 packages upgraded, 0 newly installed, 10 to remove and 0  not upgraded.
Need to get 0B of archives. After unpacking 12.6MB will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
?]
Abort.



That means to me that I clearly can't remove it.

The issue with the USB /home directory is the following, in a nutshell.  I'm doing a remaster of Knoppix along the lines of DSL - I want it on a 50 MB business card-sized CD, so I'm stripping out as much as I can.  However, the remaster is going to be for emulation purposes (TuxStation - if you want more info).  So, being that I'd like the user to be able to store save games, config files, etc., I need the persistant home functionality, so on bootup a USB drive can be detected and mounted as /home.  Going the way you mentioned would be OK, but would take user interaction, and I'm trying to minimize that as much as I can.

I'm under the assumption that Knoppix 3.2 has more dependency on gcc than 3.1 did (or maybe it's the version of X, I'm not sure).

Anyone have any more ideas?

Thanks again.
Back to top
Profile PM WEB 
Jeremy Offline





Group: Members
Posts: 17
Joined: Feb. 2004
Posted: Feb. 12 2004,16:42 QUOTE

If gcc is needed for some dependency stuff, try installing something that can replace it.

Perhaps cc like in dsl.
Try printing the all dependencies of the package it would remove and you want to keep. You should found what you are looking for.

The restore fonction can be automated via script or restore cheatcode at boot (manual or auto in syslinux.cfg)

Anyway, i think you will suffer a lot in building a 50 meg distro from a 700 meg knoppix. GCC is only your first issue.

Good luck.
Back to top
Profile PM 
mikeypants Offline





Group: Members
Posts: 4
Joined: Oct. 2003
Posted: Feb. 12 2004,17:55 QUOTE

Actually, that's not a bad idea, swapping compiler for compiler.  I'll see what I can do about that later on.

Oh, and don't worry about the size - that's all taken care of, for the most part.  My KNOPPIX compressed file is currently at about 49 and a half megs, and I'm still not completely done removing fonts and anything else I can find.

My only issue is that I've got to put my frontend and a few emulators in there, which will probably amount to 10 megs or so, so I'm looking for even more to cut away (which is why I went after gcc, as it's one of the bigger packages left, and I really won't need a compiler installed, as no one should be compiling anything anyway).

I will look more into the "restore" feature, and see if I can do anything with that.

Thanks again for the help.
Back to top
Profile PM WEB 
7 replies since Feb. 09 2004,15:52 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Removing GCC from Knoppix

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code