Skip to content

Instantly share code, notes, and snippets.

@JohannesBuchner
Created October 9, 2013 11:05
Show Gist options
  • Save JohannesBuchner/6899565 to your computer and use it in GitHub Desktop.
Save JohannesBuchner/6899565 to your computer and use it in GitHub Desktop.
update Gentoo Linux
#!/bin/bash
#rm /usr/portage/distfiles/*
renice +20 -p $$
ionice -c3 -p $$
pgrep emerge >/dev/null || rm /var/tmp/portage/*-* -rf
emerge-webrsync && eix-update
ARGS="--quiet-build --load-average=10 --jobs=3"
echo emerge -tv --keep-going --update --deep --newuse $ARGS @system
MAKEOPTS="-j4" emerge -tv --keep-going --update --deep --newuse $ARGS @system
echo emerge -tv --keep-going --update --deep --newuse $ARGS @world
MAKEOPTS="-j4" emerge -tv --keep-going --update --deep --newuse $ARGS @world
#MAKEOPTS="-j4" emerge $ARGS -1tv x11-drivers/nvidia-drivers x11-drivers/xf86-input-evdev &&
#eselect opengl set nvidia
python-updater -- $ARGS
revdep-rebuild -- $ARGS
#emerge -tv --depclean -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment