View previous topic :: View next topic |
Author |
Message |
merrak n00b
Joined: 02 Mar 2007 Posts: 64 Location: Raleigh, North Carolina
|
Posted: Wed Oct 17, 2007 1:21 am Post subject: Update World or Reinstall? |
|
|
Perhaps someone can give me a little advice here:
I'm still using Kernel 2.6.19. The last time I updated the world was about the time coldplug was replaced. Perhaps I've been a bad Gentoo user. At this point would it be easier to update everything, or just do a fresh re-install? _________________ `/\=======/\"- |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1468 Location: Earth
|
Posted: Wed Oct 17, 2007 1:23 am Post subject: Re: Update World or Reinstall? |
|
|
merrak wrote: | Perhaps someone can give me a little advice here:
I'm still using Kernel 2.6.19. The last time I updated the world was about the time coldplug was replaced. Perhaps I've been a bad Gentoo user. At this point would it be easier to update everything, or just do a fresh re-install? |
hallo,
IMHO fresh install would be better and faster
CooSee ' Ya _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Wed Oct 17, 2007 1:53 am Post subject: |
|
|
I would do an emerge -vauD world, look through what is being updated, make sure there isn't anything too crazy like a major glibc and gcc. There probably is, so I would update those first, then re-emerge world from there,
It is great knowledge to be learned by doing this.
Worse case, you fail miserably and have to re-install _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Wed Oct 17, 2007 2:33 am Post subject: |
|
|
find your xorg version. if it is still 7.1 or earlier it is better to do reinstall.
it is too time consuming and failure prone to update very old system files. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
merrak n00b
Joined: 02 Mar 2007 Posts: 64 Location: Raleigh, North Carolina
|
Posted: Wed Oct 17, 2007 3:48 am Post subject: |
|
|
Quote: | find your xorg version. if it is still 7.1 or earlier it is better to do reinstall.
it is too time consuming and failure prone to update very old system files. |
Insanity5902 wrote: | I would do an emerge -vauD world, look through what is being updated, make sure there isn't anything too crazy like a major glibc and gcc. There probably is, so I would update those first, then re-emerge world from there,
It is great knowledge to be learned by doing this.
Worse case, you fail miserably and have to re-install |
I think my poor computer just failed on all accounts.
xorg version is 7.1
both glibc and gcc are terribly out of date
And to summarize
Code: | Total: 457 packages (422 upgrades, 2 downgrades, 26 new, 7 in new slots, 2 blocks), Size of downloads: 1,165,750 kB |
_________________ `/\=======/\"- |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Wed Oct 17, 2007 4:30 am Post subject: |
|
|
you may get into lot of troubles trying to run upgrade.
i think it will be easier to reinstall with 2007.0 profile. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Wed Oct 17, 2007 6:11 am Post subject: |
|
|
One of the great things about Gentoo is that if you have a spare drive or partition then you can re-install from within your current system so you've got the power and flexibility of X-windows and all of the tools you are accustomed to using and very little downtime. Your current system also functions as a backup when you are bringing the new system to life. And finally, this makes it much easier to transfer data from the old system to the new. |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Wed Oct 17, 2007 11:50 am Post subject: |
|
|
while yes, you might run into problems, and by probably I am pretty much positive you will.
If this isn't a main desktop, then take the time and do an upgrade. It can teach you a lot about not only the inwards of gentoo, but just system and linux administration.
I would still say do the upgrade.
emerge the latest portage first, it has a lot of advantages with displaying messages. Then follow the gcc upgrade guide, hopefully you are not changing your chost, so it should be pretty easy.
There are a few blockers out there, but some quick searches on the forums will show you the answer. Then there will be expat, if it hasn't been upgraded yet, do it now and run an a revdep-rebuild against it's libs as the ebuild suggest.
It shouldn't be that bad. I did an upgrade form glibc-2.4 and gcc-3.4 with a similiar number of packages as you about 2 months ago, and it wasn't a problem, just go in with your head straight and you'll be fine. it is good experience and you'll learn a lot.
Every sysadmin's answer now-a-days is to reboot or re-install, no one takes the time to learn the system to be able to save them from problems ... _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
Zepp Veteran
Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Wed Oct 17, 2007 12:22 pm Post subject: |
|
|
I'd reinstall, likely to take less to time to get fully up to date and running again. If you want to spend the time trying to upgrade though go for it . |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Wed Oct 17, 2007 12:43 pm Post subject: |
|
|
from the given status it is not clear if modular xorg has been installed or not.
that is the second hurdle expat being the first. at any stage he can be locked out of the system
well as Insanity5902 says it is an oppotunity to learn the gentoo upgrade problems ,solutions.
if you have space in your hdd make new partition and start new install. you can have your cake and eat it too.
you can chroot into old system and finish new install and chroot into new install and upgrade old one. may be two different profiles like 2007.0 and 2007.0/desktop like i have in my p4 desktop. i have a laptop install also. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
jonnevers Veteran
Joined: 02 Jan 2003 Posts: 1594 Location: Gentoo64 land
|
Posted: Wed Oct 17, 2007 1:34 pm Post subject: |
|
|
merrak wrote: | Code: | Total: 457 packages (422 upgrades, 2 downgrades, 26 new, 7 in new slots, 2 blocks), Size of downloads: 1,165,750 kB |
|
just a heads-up. somewhere in there i bet is the expat-1 to expat-2 update that breaks a lot of packages that are linked to expat-1 libraries.
personally, I say try updating world before reinstalling. it's just more fun. but i seriously suggest masked >=expat-2, then update gcc/glibc, then the rest of your system. after that is done unmask expat-2, and start rebuilding all the broken packages
should keep you busy for a couple of hair pulling dayz. |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Thu Oct 18, 2007 1:15 pm Post subject: |
|
|
jonnevers wrote: | merrak wrote: | Code: | Total: 457 packages (422 upgrades, 2 downgrades, 26 new, 7 in new slots, 2 blocks), Size of downloads: 1,165,750 kB |
|
just a heads-up. somewhere in there i bet is the expat-1 to expat-2 update that breaks a lot of packages that are linked to expat-1 libraries.
personally, I say try updating world before reinstalling. it's just more fun. but i seriously suggest masked >=expat-2, then update gcc/glibc, then the rest of your system. after that is done unmask expat-2, and start rebuilding all the broken packages
should keep you busy for a couple of hair pulling dayz. |
Excellent suggestion. _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Thu Oct 18, 2007 2:53 pm Post subject: |
|
|
wow 1.2Gb download and emerge time of the files. he can give the command emerge -Du world after suggested masks and leave it on for few days. and forget it.
if this was for me my net speed will take days to download the files.and a week time to emerge them.
it is good idea if he has another computer while this is grounded for maintenance for good week 10 days.
_________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
broken_chaos Guru
Joined: 18 Jan 2006 Posts: 370 Location: Ontario, Canada
|
Posted: Thu Oct 18, 2007 5:41 pm Post subject: |
|
|
Set PORTAGE_NICENESS to something good. Use FEATURES="parallel-fetch". As suggested above, mask expat >=2 until after you've done the major stuff. First, upgrade gcc. revdep-rebuild afterwards, then binutils, then glibc (with another revdep-rebuild). Then do expat (with revdep-rebuild *immediately* afterwards), and the continue with the rest of the system (in some sort of order, if you feel like it - i.e. deal with blocking pacakges first, perhaps).
Once you're done all the updates, might be a good idea to run a final emerge -e world for consistency after such a large update.
Shouldn't be *too* bad, should it? |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1932
|
Posted: Thu Oct 18, 2007 7:14 pm Post subject: |
|
|
I would personally do the following
emerge -ae system (to make a stable, up-to-date base)
Then, I would
emerge -auvDN --with-bdeps y world (to update everything else that's outdated)
If something fails, run
emerge --skipfirst --resume (It will probably build after everything else is updated)
And finanlly
revdep-rebuild (to fix any broken dependencies)
Obviously, don't forget to run etc-update (or similar) between steps when necessary.
I updated really my outdated system twice when it was outdated by 6-8 months, and it was fine. I think I spent far less time than on fresh installs. _________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010 |
|
Back to top |
|
|
merrak n00b
Joined: 02 Mar 2007 Posts: 64 Location: Raleigh, North Carolina
|
Posted: Thu Oct 18, 2007 11:52 pm Post subject: |
|
|
Seems like, as always, the trick is just knowing to do. Of course, one doesn't ever learn what to do without going through the processes a couple of times. It does seem a bit silly to just wipe everything and start over when I chose Gentoo, in part, because it posed a alternatives to avoid such hassles. Time is a bit tighter than when I first installed Gentoo and had time to play with the installation process until I got it right, so it's really a question of which is less involved. Compiles can always be done overnight... but until I perfect the art of sleepwalking then browsing the forums and figuring out what went wrong can't be done overnight.
I suppose if I try to update some of the very old packages and everything goes haywire, I'm no worse off than if I had wiped the system and started over. _________________ `/\=======/\"- |
|
Back to top |
|
|
jza Tux's lil' helper
Joined: 27 Jun 2004 Posts: 87 Location: U.S.A
|
Posted: Fri Oct 19, 2007 3:33 am Post subject: |
|
|
I once updated a system (laptop) that hadn't been updated in 1.5 - 2 years. That was painful but I learned a lot and am glad I did it.
Also, I typically only do world updates every 6 months or so. I'll usually have minor problems, no big issues.
Also, personally, I hate having to do things(like setting config files, etc. ) multiple times, I'd rather break stuff and learn to fix it.
Just some thoughts, I think my suggestion is obvious |
|
Back to top |
|
|
wrc1944 Advocate
Joined: 15 Aug 2002 Posts: 3456 Location: Gainesville, Florida
|
Posted: Sat Oct 20, 2007 4:19 am Post subject: |
|
|
I basically agree with what AM088 posted above. I use this procedure when updating a system that has not been updated in a long time.
First, emerge --sync, and check to see if you need to update your profile, and do so if needed, and do any /etc/make.conf editing needed (usually nothing, except maybe USE flag adjustments).
Then update to a current kernel, and reboot to it.
Then run: Code: | quickpkg gcc glibc binutils python libtool libstdc++-v3 portage | to make binary packages of critical system packages so you can easily recover if something goes wrong. Only takes a few minutes.
Then, update only the tool-chain packages, Code: | emerge glibc binutils gcc libstdc++-v3 libtool portage | and after that's done use gcc-config and binutils-config to change to the new versions.
Then rebuild only the new toolchain again with itself. Code: | emerge glibc binutils gcc libstdc++-v3 libtool portage | Then run a complete: and then do a: and resolve any problems. Then do your final
Run revdep-rebuild -p again to check consistency, and resolve any problems.
Of course run etc-update before rebooting.
I don't think I left anything out of this rundown.
You should have no problems using this procedure, other than those that would happen due to causes other than just updating an old system. _________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.11.3 USE=experimental python3_12.7-final-0 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|