summaryrefslogtreecommitdiff
path: root/upgrade_gentoo
blob: 8d94da51462b4b82471bc2ea4687780f3a6de755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/zsh

cd /usr
rsync -avv portage/ portage_/
umount portage
rm portage.squashfs
mv portage_ portage
perl-cleaner --reallyall
python-updater
emaint --check all
emaint --fix all
emerge --sync
emerge -avuDN --with-bdeps y --keep-going world
echo "-------------------------"
read p\?"press enter to continue... "
etc-update
emerge -av --depclean
revdep-rebuild
eclean -d distfiles
localepurge
mksquashfs portage portage.squashfs -comp xz
mount portage