#!/bin/bash echo $$ > portage.pid cat portage.pid env-update && source /etc/profile echo "Downloading latest Portage snapshot ..." wget -q ftp://mirrors.tera-byte.com/pub/gentoo/snapshots/portage-latest.tar.bz2 echo "Extracting the tarball ..." tar xjf portage-latest.tar.bz2 -C /usr/ echo "Syncing Portage tree with Gentoo servers ..." emerge --sync -q # Truecrypt is fetch failed wget -q http://linuxfly.net/data/installdata/truecrypt-6.3.tar.gz -O /usr/portage/distfiles/truecrypt-6.3.tar.gz