Gentoo GNU/Linux

"clean_upgrade"

Skript zum „sauber“-halten des Systems:

/usr/local/sbin/clean_upgrade
#!/bin/bash
 
if [[ 0 -ne "$( /usr/bin/id -u )" ]] ; then
  /bin/echo "You need to be root!"
  exit 1
fi
 
if [ ! -x /usr/bin/eix ] ; then
  /usr/bin/emerge eix
fi /usr/bin/eix-sync
 
/usr/sbin/fixpackages
/usr/bin/eclean packages
/usr/bin/eclean distfiles
/usr/bin/emerge -u --deep --newuse world
 
exit 0