# cat gentoo-update #!/usr/bin/env bash if [ `id -u` -ne 0 ]; then echo "You are not root, sorry !" exit 126 fi set -e echo "Syncing portage" emerge --sync echo "Syncing layman" layman -S echo "Updating eix" update-eix echo "These are the packages you can pretend to update" emerge --pretend --verbose --update --deep --newuse world