2012-08-12 04:19:25 +00:00
|
|
|
#!/bin/sh
|
2013-09-09 04:25:46 +00:00
|
|
|
#set -x
|
|
|
|
|
2012-08-12 04:19:25 +00:00
|
|
|
|
|
|
|
# Trigger mount
|
|
|
|
# ls /mnt/portage/distfiles /mnt/portage/portage > /dev/null
|
|
|
|
|
2013-09-03 00:54:59 +00:00
|
|
|
# Half as many emerge as CPUs, to speed up configure runs
|
2013-09-19 06:36:50 +00:00
|
|
|
CPUS=$(nproc)
|
2013-09-03 00:54:59 +00:00
|
|
|
emerge --ask --update --deep --newuse --keep-going --accept-properties=-interactive --jobs $((CPUS/2)) world
|
2012-08-12 04:19:25 +00:00
|
|
|
|
|
|
|
# echo "Fixing pax flags..."
|
|
|
|
# ${SCRIPT_DIR}/fix_grsec.sh
|
|
|
|
|
|
|
|
echo "Going to remove unneeded packages ..."
|
2013-09-03 00:54:59 +00:00
|
|
|
emerge --depclean
|
2012-08-12 04:19:25 +00:00
|
|
|
|
2013-09-19 06:36:50 +00:00
|
|
|
if [ -x $(which localepurge) ]; then
|
|
|
|
echo "Removing unneeded locales..."
|
|
|
|
localepurge
|
|
|
|
fi
|
|
|
|
|
2012-08-12 04:19:25 +00:00
|
|
|
echo "Fixing dependencies..."
|
|
|
|
revdep-rebuild -i
|
2013-09-03 00:54:59 +00:00
|
|
|
|
|
|
|
echo "Updating eix cache..."
|
|
|
|
eix-update -q
|