| View previous topic :: View next topic |
| Author |
Message |
meyerm Veteran


Joined: 27 Jun 2002 Posts: 1310 Location: Munich / Germany
|
Posted: Wed Sep 25, 2002 5:57 pm Post subject: smaaaall gentoo |
|
|
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 |
|
 |
phong Bodhisattva


Joined: 16 Jul 2002 Posts: 778 Location: Michigan - 15 & Ryan
|
Posted: Wed Sep 25, 2002 6:05 pm Post subject: |
|
|
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 |
|
 |
klieber Administrator


Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed Sep 25, 2002 8:27 pm Post subject: |
|
|
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 |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Sep 25, 2002 9:00 pm Post subject: |
|
|
| 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 |
|
 |
AutoBot l33t


Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Thu Sep 26, 2002 7:13 am Post subject: |
|
|
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 |
|
 |
rdirmeyer n00b

Joined: 17 Sep 2002 Posts: 2
|
Posted: Fri Sep 27, 2002 7:12 pm Post subject: Re: smaaaall gentoo |
|
|
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 |
|
 |
meyerm Veteran


Joined: 27 Jun 2002 Posts: 1310 Location: Munich / Germany
|
Posted: Fri Sep 27, 2002 8:24 pm Post subject: |
|
|
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...
Phew, hopefully this is sth. new for you and I didn't just waste time and many keystrokes  |
|
| Back to top |
|
 |
rdirmeyer n00b

Joined: 17 Sep 2002 Posts: 2
|
Posted: Fri Sep 27, 2002 9:05 pm Post subject: Re: smaaaall gentoo |
|
|
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 |
|
 |
meyerm Veteran


Joined: 27 Jun 2002 Posts: 1310 Location: Munich / Germany
|
Posted: Fri Sep 27, 2002 10:25 pm Post subject: Re: smaaaall gentoo |
|
|
| rdirmeyer wrote: | | i appreciate your willingness to point this out to me |
You're welcome - no problem (from meyer to meyer... ) |
|
| Back to top |
|
 |
|