For Gentoo Linux, things are stored under /usr/portage http://www.gentoo.org/doc/portage-user.html
It also pulls the sources down and compiles and installs for you. If you want to upgrade the whole system, "emerge --pretend update --world" to see what it will update (if you care) and then "emerge update --world" irc.openprojects.net #gentoo
