Dyyryath
11-08-2003, 12:37 PM
Since we seem to be doing Mandrake tips lately, here's one for you guys with broadband: an easy, in place upgrade to the latest version.
Here's the steps:
If you're running X, switch to the command line by hitting CTRL-ALT-F1. Login as root (or as a regular user & su to root if you have a good security level), then type 'init 3' at the command line.
Now we need to remove the old sources from urpmi's configuration. Do this by typing 'urpmi.removemedia -a' at the command line. Once that's done, we'll add the new 9.2 sources. You can use this site (http://plf.zarb.org/~nanardon/) to come up with mirrors close to you, or use the ones I like if you're in the US. Type the following three lines at the command line, one at a time:
urpmi.addmedia --update updates ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/updates/9.2/RPMS/ with ../base/hdlist.cz
urpmi.addmedia main ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/9.2/i586/Mandrake/RPMS with ../base/hdlist.cz
urpmi.addmedia contrib ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/9.2/contrib/i586 with ../../i586/Mandrake/base/hdlist2.cz
Now that we have new sources to pull from, we're going to update the actual urpmi application first, to help insure that we don't have any problems. Do this by typing: 'urpmi urpmi' at the command line. You'll see quite a few packages listed. These are urpmi's dependencies and it's OK to update them; go ahead and do so. If you see errors about missing GPG keys, that's OK, too.
Next comes the bulk of the update. Type 'urpmi --auto-select --no-verify-rpm --auto' and let her rip. This should update everything else on the system (with one exception which we will cover momentarily). Now would be a good time to go get a sandwich or something, this will take awhile.
Once that's done, you may or may not have a problem with perl. Currently, there is a problem with the perl base RPM which gets downloaded and it fails to install. This also keeps any of the packages relying on the perl upgrade from installing properly. You can fix this by grabbing the perl RPM in question manually and placing it in the RPM cache. To determine whether you had a problem, type 'urpmi --auto-select' at the command line. If you have a list of things that still need to be installed, look at the top of the list and note the exact name of the perl base module (and then cancel that command, it won't work until we fix that perl RPM). It will probably be 'perl-5.8.1-0.RC4.3mdk' but that will change over time. Go to this site (http://rpmfind.net) and do a search for perl. You'll get a list of perl RPMs from various distributions. Pick the one from Mandrake with the exact same name and download it. Make sure you get the i586 RPM (binary) and not the source RPM. Then copy it to /var/cache/urpmi/rpms. Once you've done that, simply execute 'urpmi --auto-select' and let it go. It should finish upgrading everything.
Finally, if you'd like to upgrade to the latest kernel, type 'urpmi kernel' at the command line. It will offer you a list of choices. Pick the one you want, and urpmi will install it, modify your lilo config and finish up.
You're finished. You should now be able to reboot into a shiny new Mandrake 9.2 install, with all of your old configurations & software intact.
Now, keep in mind that things can go wrong, so if you want to follow these instructions, make sure you backup things that are important to you first. You're doing that regularly anyway, right?
Having said that, I've upgraded everything from crunching & compilation nodes at my house to production servers at work like this. In fact, I recently upgraded one of the mail servers at work like this without ever going to the office. The entire update was done remotely via ssh without a hitch. Even the reboot to load the new kernel was painless. :thumbs:
If anyone has questions, about this, feel free to ask them here. :cool:
Here's the steps:
If you're running X, switch to the command line by hitting CTRL-ALT-F1. Login as root (or as a regular user & su to root if you have a good security level), then type 'init 3' at the command line.
Now we need to remove the old sources from urpmi's configuration. Do this by typing 'urpmi.removemedia -a' at the command line. Once that's done, we'll add the new 9.2 sources. You can use this site (http://plf.zarb.org/~nanardon/) to come up with mirrors close to you, or use the ones I like if you're in the US. Type the following three lines at the command line, one at a time:
urpmi.addmedia --update updates ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/updates/9.2/RPMS/ with ../base/hdlist.cz
urpmi.addmedia main ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/9.2/i586/Mandrake/RPMS with ../base/hdlist.cz
urpmi.addmedia contrib ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/9.2/contrib/i586 with ../../i586/Mandrake/base/hdlist2.cz
Now that we have new sources to pull from, we're going to update the actual urpmi application first, to help insure that we don't have any problems. Do this by typing: 'urpmi urpmi' at the command line. You'll see quite a few packages listed. These are urpmi's dependencies and it's OK to update them; go ahead and do so. If you see errors about missing GPG keys, that's OK, too.
Next comes the bulk of the update. Type 'urpmi --auto-select --no-verify-rpm --auto' and let her rip. This should update everything else on the system (with one exception which we will cover momentarily). Now would be a good time to go get a sandwich or something, this will take awhile.
Once that's done, you may or may not have a problem with perl. Currently, there is a problem with the perl base RPM which gets downloaded and it fails to install. This also keeps any of the packages relying on the perl upgrade from installing properly. You can fix this by grabbing the perl RPM in question manually and placing it in the RPM cache. To determine whether you had a problem, type 'urpmi --auto-select' at the command line. If you have a list of things that still need to be installed, look at the top of the list and note the exact name of the perl base module (and then cancel that command, it won't work until we fix that perl RPM). It will probably be 'perl-5.8.1-0.RC4.3mdk' but that will change over time. Go to this site (http://rpmfind.net) and do a search for perl. You'll get a list of perl RPMs from various distributions. Pick the one from Mandrake with the exact same name and download it. Make sure you get the i586 RPM (binary) and not the source RPM. Then copy it to /var/cache/urpmi/rpms. Once you've done that, simply execute 'urpmi --auto-select' and let it go. It should finish upgrading everything.
Finally, if you'd like to upgrade to the latest kernel, type 'urpmi kernel' at the command line. It will offer you a list of choices. Pick the one you want, and urpmi will install it, modify your lilo config and finish up.
You're finished. You should now be able to reboot into a shiny new Mandrake 9.2 install, with all of your old configurations & software intact.
Now, keep in mind that things can go wrong, so if you want to follow these instructions, make sure you backup things that are important to you first. You're doing that regularly anyway, right?
Having said that, I've upgraded everything from crunching & compilation nodes at my house to production servers at work like this. In fact, I recently upgraded one of the mail servers at work like this without ever going to the office. The entire update was done remotely via ssh without a hitch. Even the reboot to load the new kernel was painless. :thumbs:
If anyone has questions, about this, feel free to ask them here. :cool: