summaryrefslogtreecommitdiff
path: root/upgrade-gentoo
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-08-10 11:19:38 +0100
committerPatrick Simianer <p@simianer.de>2014-08-10 11:19:38 +0100
commit5869505d64c04c536bdcd71a197ade918c36bf1c (patch)
tree6af5232a9f2e058f15230a370a960f89871a2b74 /upgrade-gentoo
init
Diffstat (limited to 'upgrade-gentoo')
-rwxr-xr-xupgrade-gentoo23
1 files changed, 23 insertions, 0 deletions
diff --git a/upgrade-gentoo b/upgrade-gentoo
new file mode 100755
index 0000000..1df1209
--- /dev/null
+++ b/upgrade-gentoo
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+
+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
+read p\?"press enter... "
+etc-update
+emerge -av --depclean
+revdep-rebuild
+eclean -d distfiles
+localepurge
+mksquashfs portage portage.squashfs -comp xz
+mount portage
+