summaryrefslogtreecommitdiff
path: root/upgrade-gentoo
blob: 4e1e65d69b9819c9a0ffd21c0e31ade6e7991a91 (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
#!/bin/zsh

source $(dirname $0)/func.zsh

check_root

unset LD_LIBRARY_PATH  # for glibc
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