28 lines
586 B
Bash
Executable File
28 lines
586 B
Bash
Executable File
#!/bin/sh
|
|
#set -x
|
|
|
|
|
|
# Trigger mount
|
|
# ls /mnt/portage/distfiles /mnt/portage/portage > /dev/null
|
|
|
|
# Half as many emerge as CPUs, to speed up configure runs
|
|
CPUS=$(nproc)
|
|
emerge --ask --update --deep --newuse --keep-going --accept-properties=-interactive --jobs $((CPUS/2)) world
|
|
|
|
# echo "Fixing pax flags..."
|
|
# ${SCRIPT_DIR}/fix_grsec.sh
|
|
|
|
echo "Going to remove unneeded packages ..."
|
|
emerge --depclean
|
|
|
|
if [ -x $(which localepurge) ]; then
|
|
echo "Removing unneeded locales..."
|
|
localepurge
|
|
fi
|
|
|
|
echo "Fixing dependencies..."
|
|
revdep-rebuild -i
|
|
|
|
echo "Updating eix cache..."
|
|
eix-update -q
|