logo

Sunday 20th of May 2012

Home Gumstick Gentoo Part 1: Know thy enemy
Part 1: Know thy enemy
Written by Hunter Cobbs   
Monday, 18 August 2008 20:17

The major difficulty surrounding any "embedded" install of Gentoo lies in one of its greatest strengths:

PORTAGE

Most people who have installed a Stage3 system without really delving into the particulars of Gentoo probably have one simple question rolling around in their heads:

"Why is Gentoo SOOOOO big when it's a custom-compiled Linux Distribution?!?!?!"

Well, the short answer to this is quite direct. Portage is freaking HUGE! So, what is a Linux Embedded OS Developer (who REALLY likes Gentoo) to do? Why, take out your enemy of course! Figuratively speaking....

Portage has several directories in the file system that it directly manipulates:

  • /usr/portage (duh)
  • /var/cache
  • /var/db
  • /var/tmp/portage
Well, that's nice. But there is also another major culprit in shrinking a Gentoo install
  • /usr/src

Now that you know the major "hogs" to a Gentoo system, what is one to do? Why quickly, quietly, and methodically "take them out of the picture", of course!

As a teaser... I will let you know some of the standard Linux utilities that you will be using to make this Gumstick Gentoo work:
  • mount
  • chroot
  • emerge
  • nano/vim(my tool of choice)

Is that it, you ask? Why yes Virginia, that's all you really need!
 

Powered by Joomla!. Designed by: Free Joomla Theme unlimited hosting Valid XHTML and CSS.