summaryrefslogtreecommitdiff
path: root/upgrade-gentoo
blob: 7cd204786198e3298b0b501b21f86faec09c2602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/zsh

HOST=$(hostname)

source $(dirname $0)/func.zsh

check_root

unset LD_LIBRARY_PATH
env-update

emaint --check all
emaint --fix all
emerge --sync
if [[ -e $(which layman) ]]; then
  layman -s SYNC ALL
fi
emerge --oneshot portage
emerge --newuse -avuDN --with-bdeps y --keep-going world
echo "-------------------------"
read p\?"press enter to continue... "
etc-update
emerge -av --depclean
perl-cleaner --reallyall
revdep-rebuild
emerge @preserved-rebuild
eclean -d distfiles