LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-14-2006, 06:18 PM   #1
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Rep: Reputation: 15
remove dev libs from installation


I am in the process of porting some working applications from my development system to the target system, involving some drastic reduction in storage size. target final size ~ 1G. for immdiate need, I can even live with 2GB. starting point ~ 3.5 GB right now.

I thought it would be relatively easy to just uninstall all the development lib and achieve the reduction. however, it seems some features I consider for development is so tightly interwoven with essential linux components, I am not able to do this.

case in point, I tried to remove gnu compiler using synaptic, but with it go apt and apache2. I can maybe do without apt, but need apache2 for sure. without apt, I can not simply add back apache2 afterwards.

can someone give guidance how this can be done? which dev package should I attack?

Last edited by bhomass; 02-14-2006 at 11:43 PM.
 
Old 02-15-2006, 12:17 AM   #2
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
If you remove gcc you're pretty much asking for a broken system. The compiler is an essential tool and should not be removed. If you want that drastic reduction in size i'd recommend using a lightweight windows manager instead of a desktop environment, something like fluxbox or such as that will decrease the size by alot. Also search through all your *-dev packages and you can probably remove most of them, but things like libc-dev and such should stay. Overall the best way to reduce in size would be a fresh new lightweight install and then just copy your important configuration files over. Trying to reduce our current size by over 1/2 is going to be alot harder then just reinstalling and adding few packages.
 
Old 02-15-2006, 10:37 AM   #3
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Original Poster
Rep: Reputation: 15
what you are saying is in agreement with my current experience. I am very curious though, why should essential packages like apt and apache2 be bundled with gnu compiler? what would you need a compiler for if there is no need to work with source code? is there some common sense guideline for how these packages are bundled?

Last edited by bhomass; 02-15-2006 at 10:40 AM.
 
Old 02-15-2006, 10:37 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,619

Rep: Reputation: 104Reputation: 104
You can also remove the -doc packages along with installing localepurge select only the locale you want to remain that should get you probably at least about 500mb back.
 
Old 02-15-2006, 11:34 AM   #5
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Original Poster
Rep: Reputation: 15
thanks, I already know that trick.
 
Old 02-15-2006, 11:50 AM   #6
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Quote:
Originally Posted by bhomass
what you are saying is in agreement with my current experience. I am very curious though, why should essential packages like apt and apache2 be bundled with gnu compiler? what would you need a compiler for if there is no need to work with source code? is there some common sense guideline for how these packages are bundled?
Ask the maintainers, but I'm pretty sure they have a good reason. Altough the concept of a GNU/Linux system without the GNU C Compiler is pretty sad in my opinion. I think that apt itself uses gcc for alot of things like when configuring locales and things such as that, some packages apt-get can install it compiles parts of them to optimize and such, although few packages do that. While apache2 on the other hand I'd have more trouble explaining why it requires it.
 
  


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 /dev label dimi Linux - General 1 09-08-2005 12:53 AM
how to remove rpm installation? kpachopoulos Fedora 2 06-16-2005 08:13 AM
krb5-libs installation moiaussi Linux - Newbie 2 01-26-2005 10:02 AM
remove tty files from /dev kprocter Linux - General 4 06-03-2003 04:51 PM
BitchX installation from source problem finding libs CragStar Linux - Software 0 11-21-2002 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration