diff options
Diffstat (limited to 'upgrade-gentoo')
-rwxr-xr-x | upgrade-gentoo | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/upgrade-gentoo b/upgrade-gentoo new file mode 100755 index 0000000..af56971 --- /dev/null +++ b/upgrade-gentoo @@ -0,0 +1,25 @@ +#!/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 +rm -rf /usr/portage +mkdir /usr/portage +mount portage + |