Re: [gentoo-user] Updating Gentoo
Hi there, I'm using Sakaki's Genup Script exclusively for quite a long time now. No problems there and it updates everything (i.e. portage, overlays if you have some installed, etc.) Have a look at it: https://github.com/sakaki-/genup greetz m4110c Thus spoke Consus (con...@ftml.net): > Hi, > > For quite a bit I'm using this script to update my stable Gentoo system: > > $ cat $(which sysupdate) > #!/bin/sh > # Update the whole system > > set -e > > echo "==> Syncing Portage tree..." > emerge --sync --quiet > > echo "==> Updating world..." > emerge -auDU --with-bdeps=y @world > > echo "==> Removing old dependencies..." > emerge -qc > > echo "==> Upgrading Perl packages (if needed)..." > perl-cleaner --quiet --modules --ph-clean --delete-leftovers > > # TODO: Check errors > cur_kver=$(readlink /usr/src/linux | sed 's/linux-//') > new_kver=$(cd /usr/src && ls -1d linux-* | sort -Vr | head -1 | sed > 's/linux-//') > > if [ "${cur_kver}" != "${new_kver}" ]; then > echo "==> Switching to kernel ${new_kver}..." > eselect kernel set linux-${new_kver} > if [ ! -e "/boot/vmlinuz-${new_kver}" ]; then > echo "==> Building kernel ${new_kver}..." > genkernel kernel > fi > else > # Rebuild initramfs if third-party modules were updated > if [ -n $(find /lib/modules/${cur_kver} \ > -newer /boot/initramfs-${cur_kver}.img) ]; then > dracut -f > fi > fi > > Still, it won't catch some issues with Go or Haskell (as there are > separate app-admin/go-updater and app-admin/haskell-updater ebuilds > still around in the Tree) + there is a separate genkernel post-install > script that cleans up old kernels during the kernel update. > > So, I was wondering -- maybe there is a > fool-proof-one-command-that-do-it-all solution wondering somewhere? > -- m4110c mailto: dis...@mm-no.de
Re: [gentoo-user] Updating Gentoo
Hi, Here I’m using this script: https://git.grifon.fr/alarig/gentoo-auto-update/src/branch/master/check_updates.sh But it’s not perfect also ;) -- Alarig
[gentoo-user] Updating Gentoo
Hi, For quite a bit I'm using this script to update my stable Gentoo system: $ cat $(which sysupdate) #!/bin/sh # Update the whole system set -e echo "==> Syncing Portage tree..." emerge --sync --quiet echo "==> Updating world..." emerge -auDU --with-bdeps=y @world echo "==> Removing old dependencies..." emerge -qc echo "==> Upgrading Perl packages (if needed)..." perl-cleaner --quiet --modules --ph-clean --delete-leftovers # TODO: Check errors cur_kver=$(readlink /usr/src/linux | sed 's/linux-//') new_kver=$(cd /usr/src && ls -1d linux-* | sort -Vr | head -1 | sed 's/linux-//') if [ "${cur_kver}" != "${new_kver}" ]; then echo "==> Switching to kernel ${new_kver}..." eselect kernel set linux-${new_kver} if [ ! -e "/boot/vmlinuz-${new_kver}" ]; then echo "==> Building kernel ${new_kver}..." genkernel kernel fi else # Rebuild initramfs if third-party modules were updated if [ -n $(find /lib/modules/${cur_kver} \ -newer /boot/initramfs-${cur_kver}.img) ]; then dracut -f fi fi Still, it won't catch some issues with Go or Haskell (as there are separate app-admin/go-updater and app-admin/haskell-updater ebuilds still around in the Tree) + there is a separate genkernel post-install script that cleans up old kernels during the kernel update. So, I was wondering -- maybe there is a fool-proof-one-command-that-do-it-all solution wondering somewhere?
Re: [gentoo-user] Updating Gentoo
On Fri, 30 Jan 2015 14:31:47 -0500, symack wrote: This worked for me: emerge -C dev-python/python-exec emerge dev-python/python-exec It also added python-exec to your world set, which is not advisable. Undo that with emerge --deselect dev-python/python-exec -- Neil Bothwick Please rotate your phone 90 degrees and try again. pgpUff3iDsPU0.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Updating Gentoo
Neil Thank you! Actually I have an issue where trying to emerge world. This is the following message: (dev-lang/python-exec-2.0.1:2/2::gentoo, installed) pulled in by dev-lang/python-exec:2[python_targets_jython2_5(-),python_targets_jython2_7(-),python_targets_python3_2(-),python_targets_python3_3(-),python_targets_python2_6(-),python_targets_python2_7(-),-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy2_0(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-)] required by (dev-python/python-exec-1.2:2/2::gentoo, installed) It may be possible to solve this problem by using package.mask to prevent one of those packages from being selected. However, it is also possible that conflicting dependencies exist such that they are impossible to satisfy simultaneously. If such a conflict exists in the dependencies of two different packages, then those packages can not be installed simultaneously. For more information, see MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook Is it safe to uninstall python-exec? N.
Re: [gentoo-user] Updating Gentoo
DON'T unmerge python, remember emerge runs on python, you will likely be unable to use the package manager if you do that I did this mistake a long long time ago... Been there dones that Good news: emerge -C dev-python/python-exec emerge dev-python/python-exec (fixed the issue) glibc updated (not vulnerable) python update revdep-rebuild, and restarted all the service everything seems ok. Not going to play around with no udev or grub2. My weekend starts now and refuse to get it off on the wrong foot! N.
Re: [gentoo-user] Updating Gentoo
On Fri, Jan 30, 2015 at 6:49 PM, symack sym...@gmail.com wrote: Hello Everyone, Last time I did this we experience 3 hour downtime, and it was not fun. I was blue in the face: [1] N 2010-08-01 (2010-08-01-as-needed-default - removed?) [2] N 2012-03-16 (2012-03-16-udev-181-unmasking - removed?) [3] N 2012-05-21 Portage config-protect-if-modified default [4] N 2012-09-09 (2012-09-09-make.conf-and-make.profile-move - removed?) [5] N 2012-11-06 PYTHON_TARGETS deployment [6] 2013-03-29 Upgrading udev to version =200 [7] 2013-06-07 Portage preserve-libs default [8] N 2013-06-30 Printer browsing in net-print/cups-1.6 [9] N 2013-08-23 Language of messages in emerge logs and output [10] N 2013-09-27 Separate /usr on Linux requires initramfs [11] N 2013-10-14 GRUB2 migration [12] N 2013-11-07 python-exec package move [13] N 2014-02-25 Upgrade to =sys-fs/udev-210 [14] N 2014-03-02 Profile EAPI 5 requirement [15] N 2014-03-16 Ruby 1.8 removal; Ruby 1.9/2.0 default [16] N 2014-11-07 Upgrade to udev = 217 or eudev = 2.1 [17] N 2015-01-28 CPU_FLAGS_X86 introduction Grub2: Will this bring us down for days? Is it a hard transition Udev: Oh what a spider web you weave. We are using udev 204 right now. Please gents, is there a safe and easy way of doing this? I need to update the system but want to limit downtime as much as possible. Please help. N. It would be wise to upgrade per partes, not doing a large leap from 2010-2015. This may come handy: http://blog.siphos.be/2015/01/old-gentoo-system-not-a-problem/
[gentoo-user] Updating Gentoo
Hello Everyone, Last time I did this we experience 3 hour downtime, and it was not fun. I was blue in the face: [1] N 2010-08-01 (2010-08-01-as-needed-default - removed?) [2] N 2012-03-16 (2012-03-16-udev-181-unmasking - removed?) [3] N 2012-05-21 Portage config-protect-if-modified default [4] N 2012-09-09 (2012-09-09-make.conf-and-make.profile-move - removed?) [5] N 2012-11-06 PYTHON_TARGETS deployment [6] 2013-03-29 Upgrading udev to version =200 [7] 2013-06-07 Portage preserve-libs default [8] N 2013-06-30 Printer browsing in net-print/cups-1.6 [9] N 2013-08-23 Language of messages in emerge logs and output [10] N 2013-09-27 Separate /usr on Linux requires initramfs [11] N 2013-10-14 GRUB2 migration [12] N 2013-11-07 python-exec package move [13] N 2014-02-25 Upgrade to =sys-fs/udev-210 [14] N 2014-03-02 Profile EAPI 5 requirement [15] N 2014-03-16 Ruby 1.8 removal; Ruby 1.9/2.0 default [16] N 2014-11-07 Upgrade to udev = 217 or eudev = 2.1 [17] N 2015-01-28 CPU_FLAGS_X86 introduction Grub2: Will this bring us down for days? Is it a hard transition Udev: Oh what a spider web you weave. We are using udev 204 right now. Please gents, is there a safe and easy way of doing this? I need to update the system but want to limit downtime as much as possible. Please help. N.
Re: [gentoo-user] Updating Gentoo
On Fri, Jan 30, 2015 at 12:49 PM, symack sym...@gmail.com wrote: Hello Everyone, Last time I did this we experience 3 hour downtime, and it was not fun. I was blue in the face: Grub2: Will this bring us down for days? Is it a hard transition Don't bother upgrading/migrating. If your current boot loader meets your needs, there is no reason to switch to grub2.
Re: [gentoo-user] Updating Gentoo
This worked for me: emerge -C dev-python/python-exec emerge dev-python/python-exec
Re: [gentoo-user] Updating Gentoo
2015-01-30 12:48 GMT-06:00 symack sym...@gmail.com: Please excuse me, as I am new to gentoo: Then you shouldn't be upgrading systems that you cannot have downtime, take your time to play around with disposable installations(VMs , containers, etc..). %) PYTHON_TARGETS=python2_7 python3_3* (-pypy) -python3_4 (-pypy1_9%) (-pypy2_0%) (-python2_6%) (-python3_1%) (-python3_2%*) 876 kB [blocks B ] dev-python/python-exec-1 (dev-python/python-exec-1 is blocking dev-lang/python-exec-2.0.1-r1) I am trying to get by this block, and my approach would be to unmerge python dev-lang/python != dev-(python|lang)/python-exec DON'T unmerge python, remember emerge runs on python, you will likely be unable to use the package manager if you do that. there's a news item(the 12th) regarding this, read it, the instructions are there. then reinstall however, would really like some advice from the experts on this. I'm not an expert, but in your situation I would make a chroot, copy the /etc/portage configuration files, upgrade in the chroot generating binary packages[1] and then upgrade from the binaries. it takes much less time to upgrade when you have everything compiled, and you only need to 'merge' it. [1] http://wiki.gentoo.org/wiki/Binary_package_guide
Re: [gentoo-user] Updating Gentoo
On Fri, Jan 30, 2015 at 12:52 PM, Mike Gilbert flop...@gentoo.org wrote: On Fri, Jan 30, 2015 at 12:49 PM, symack sym...@gmail.com wrote: Hello Everyone, Last time I did this we experience 3 hour downtime, and it was not fun. I was blue in the face: Grub2: Will this bring us down for days? Is it a hard transition Don't bother upgrading/migrating. If your current boot loader meets your needs, there is no reason to switch to grub2. Agreed! I'm sorry guys. Don't want to have people hold my hand, but I dread these upgrades First snag: %) PYTHON_TARGETS=python2_7 python3_3* (-pypy) -python3_4 (-pypy1_9%) (-pypy2_0%) (-python2_6%) (-python3_1%) (-python3_2%*) 876 kB [blocks B ] dev-python/python-exec-1 (dev-python/python-exec-1 is blocking dev-lang/python-exec-2.0.1-r1) Total: 5 packages (2 upgrades, 2 new, 1 in new slot), Size of downloads: 24,709 kB Conflict: 1 block (1 unsatisfied)
Re: [gentoo-user] Updating Gentoo
I have updated the systems since then. Up to early last year. Is it safe to update glibc?
Re: [gentoo-user] Updating Gentoo
Please excuse me, as I am new to gentoo: %) PYTHON_TARGETS=python2_7 python3_3* (-pypy) -python3_4 (-pypy1_9%) (-pypy2_0%) (-python2_6%) (-python3_1%) (-python3_2%*) 876 kB [blocks B ] dev-python/python-exec-1 (dev-python/python-exec-1 is blocking dev-lang/python-exec-2.0.1-r1) I am trying to get by this block, and my approach would be to unmerge python then reinstall however, would really like some advice from the experts on this. N.