Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smaaaall gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1310
Location: Munich / Germany

PostPosted: Wed Sep 25, 2002 5:57 pm    Post subject: smaaaall gentoo Reply with quote

Hi out there,

I've got several old PCs with small harddrives. For the complete system (including user files, spools etc), there are no more than 400 MB... Now I would like to know, how I can get my Gentoo smaller. I'm currently setting up an gentoo on a spare partition on my working PC. When it works (with syslog, webserver, qmail etc) I would like to move it onto one of the old PCs.

But what can I delete without danger? First: the kernel sources. OK. Then I will delete everything in /usr/portage/distfiles. But what about everything else in portage (despite special dir like "profiles")? Will I still be able to install new software precompiled on my working PC with emerge (using tbz2s)?

And how about all those locales which I will never ever use *g*. Finally I wouldn't need a GCC either. Can I remove it without problems?

Thanks,
Marcel
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Wed Sep 25, 2002 6:05 pm    Post subject: Reply with quote

You may want to see this howto on how to not install unused locale information.
_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Sep 25, 2002 8:27 pm    Post subject: Reply with quote

Well, the portage tree, even without any distfiles, is about 100MB, so you'd save quite a bit of space if you could mount that as an NFS share instead of having a local copy on every machine.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Sep 25, 2002 9:00 pm    Post subject: Reply with quote

klieber wrote:
Well, the portage tree, even without any distfiles, is about 100MB, so you'd save quite a bit of space if you could mount that as an NFS share instead of having a local copy on every machine.

The amount of sheer soul-blinding pain associated with this process would be reduced by a factor of a thousand if emerge sync could be run by non-root users.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Thu Sep 26, 2002 7:13 am    Post subject: Reply with quote

You can also remove files in /var/tmp/portage/* as this sometimes can grow very large with failed ebuilds.
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
rdirmeyer
n00b
n00b


Joined: 17 Sep 2002
Posts: 2

PostPosted: Fri Sep 27, 2002 7:12 pm    Post subject: Re: smaaaall gentoo Reply with quote

gcc happens to be a pretty essential part of the ebuild system. If portage packages came pre-compiled, there would be no need for portage at all. The bz2/tbz2 files are collections of headers/source and other necessary components to build the package, they are not pre-compiled.

ebuilds are just build scripts that are customized for each package. The ebuild/portage system very much relies on being able to build packages locally, so removing gcc pretty much takes "emerge <blah>" out of service.
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1310
Location: Munich / Germany

PostPosted: Fri Sep 27, 2002 8:24 pm    Post subject: Reply with quote

Thanks for all of your answers.

@rdirmeyer
You're absolutely right, when it comes to source packages. But I ment already precompiled ones. Perhaps I wasn't clear enough or you don't yet know this nice feature of emerge - in the latter case I'd like to explain it to you (if we just misunderstood each other ignore this post ;))

Whenever you compile a new package out of the sources with "emerge -b <package>", portage configures and compiles the program. But it installs it into a "fake-root", say it creates a new directory-tree in an empty tmp. When everything is compiled and installed without errors, portage moves the content of this dir into the "real /". But when you enabled the "-b" switch, it creates a bzip2-compressed tar archive of this temporary tree and puts it in /usr/portage/packages before merging into the real /. Therefore, whenever you want to reinstall this package without changing any config (f.ex. a new installation of your system or on a similar other PC) you can install it with "emerge -k <package>" and portage search for this package before downloading the source. If it finds this package, it just unpacks it into the tree, registers the program to the portage-dbs and - that's it. :)

You see, why I thought I could perhaps even unemerge gcc? It is only needed on my host/working PC but not on the one, where the package is to be installed. Well, at least I hope so... :roll:

Phew, hopefully this is sth. new for you and I didn't just waste time and many keystrokes ;)
Back to top
View user's profile Send private message
rdirmeyer
n00b
n00b


Joined: 17 Sep 2002
Posts: 2

PostPosted: Fri Sep 27, 2002 9:05 pm    Post subject: Re: smaaaall gentoo Reply with quote

i had a feeling i'd get a response like that... and i'm glad i did. no, it certainly wasn't a waste of keystrokes.

you are correct, i have never used that feature. you can bet i'll be playing around with it now, though. that's very cool. i appreciate your willingness to point this out to me; it's a great help! thanks!

-rd
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1310
Location: Munich / Germany

PostPosted: Fri Sep 27, 2002 10:25 pm    Post subject: Re: smaaaall gentoo Reply with quote

rdirmeyer wrote:
i appreciate your willingness to point this out to me

You're welcome - no problem (from meyer to meyer... ;))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum