View previous topic :: View next topic |
Author |
Message |
palmer Guru
Joined: 17 Nov 2004 Posts: 322 Location: Berkeley, CA
|
Posted: Fri Jan 05, 2007 3:54 am Post subject: Not-Needed Directories and Files |
|
|
I am building gentoo for a USB stick and am wondering what files I can safely leave off the stick without harming anything
I am starting with the gentoo livecd, which is ~450mb after decompression
I plan on squashfs-ing the entire distro while on the USB stick
I have a 128mb USB stick that I would love to fit this on, but I realize that it might not be possible
I am now re-merging the entire system with -Os to further reduce the size of the directories
I plan on switching to busybox to save even more space, if possible
I will install a very minimal kernel, and I'm planning on removing all the sources (/usr/src/)
All the stick will have to do is boot and run X (KDE will definitely push it over the size limit)
There will be no compiling or such (so no gcc is needed)
Does anyone know what files I can safely remove from the system?
I think the big things will be languages (perl, gcc, python, ruby), does anyone know where their non-runtime libraries and executables live?
Even better, is there any package I can completely remove?
Right now I have
TMP Files:
Code: | /tmp
/usr/portage
/usr/src
/usr/tmp
/var/tmp |
Unneeded:
Code: | /var/log/
/var/cache/
/var/spool/
/var/db/ |
I can live without
Code: | /usr/share/locale/ (everything but en_US)
/usr/share/man/
/usr/share/zoneinfo/
/usr/share/autoconf/
/usr/share/automake-*/
/usr/share/doc/
/usr/share/i18n/ (everything but my charmap and locale)
/usr/lib/libexec/ |
Unknown:
Code: | The rest of /usr/share/
/usr/lib/gcc/
/usr/lib/python/
/usr/lib/portage/
/usr/lib/perl5/ |
-palmer |
|
Back to top |
|
|
mose Guru
Joined: 04 Jun 2005 Posts: 313 Location: Piacenza
|
|
Back to top |
|
|
palmer Guru
Joined: 17 Nov 2004 Posts: 322 Location: Berkeley, CA
|
Posted: Fri Jan 05, 2007 9:36 pm Post subject: |
|
|
I had already found that page, and it is basicly what I am using to make my system
I was wondering, are there any directories that I can remove from that?
I know I can at least remove the compiling part of GCC, because that disk was designed for install and I won't need to compile...
-palmer |
|
Back to top |
|
|
Archangel1 Veteran
Joined: 21 Apr 2004 Posts: 1212 Location: Work
|
Posted: Sun Jan 07, 2007 7:57 am Post subject: |
|
|
palmem wrote: | I had already found that page, and it is basicly what I am using to make my system
I was wondering, are there any directories that I can remove from that?
I know I can at least remove the compiling part of GCC, because that disk was designed for install and I won't need to compile...
-palmer |
It's probably easier to build the system with ROOT="/whatever" so you don't have GCC and similar things on there to begin with. _________________ What are you, stupid? |
|
Back to top |
|
|
|
|
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
|
|