LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Upgrading to 10.1 official (https://www.linuxquestions.org/questions/mandriva-30/upgrading-to-10-1-official-253608/)

sala 11-11-2004 09:11 AM

Upgrading to 10.1 official
 
Hi

I am running Mandrake 10.0 Official, I had a look at easy urpmi web site today and saw that sources for 10.1 Official were added.

What is the proper procedure for upgrading?
I am guessing that updating the sources shoudl do the trick....but not entirely sure.
I would also like to use the new kernel version that comes with 10.1

Thanks

opjose 11-11-2004 05:26 PM

Because files are in use on a running 10.0 system, upgrading via URPMI is not a great option, though some have tried.

Rather you can utilize a boot CD to get a rudimentary network going via the CD's installer. Once done it will connect to the repository (you must supply the source...) and it will upgrade your existing system.

This is MUCH slower than installing from CD, but it works.

The Image for this is also available on the repositories.

sala 11-11-2004 06:13 PM

Ok, thanks alot for help :)

Padma 11-12-2004 02:31 PM

It is possible to upgrade froma running system, though. ;)

The best thing is to set up urpmi to point to the 10.1 OE sources, then issue an "init 3" as root. This will start a single-user, full-screen console session. Log in as root, and issue a "urpmi urpmi" command. (This makes sure your version of urpmi is the latest.) Then simply issue a "urpmi --auto-select". This will update everything to the latest tree.

opjose 11-12-2004 04:59 PM

I haven't tried this.

Will it pick up the kernel upgrades this way?

jschiwal 11-12-2004 05:10 PM

Quote:

Log in as root, and issue a "urpmi urpmi" command. (This makes sure your version of urpmi is the latest.)
That was excellent. I'm angry with myself for not having though of it.

reddazz 11-12-2004 07:17 PM

I have used mandrake for years and never thought of it either. I have upgraded 9.2 to 10 via urpmi and it was quite successful although it took me ages.

student04 11-12-2004 07:37 PM

Where do you configure urpmi to look for sources when upgrading? Is there a configuration file somwhere?

Thanks

reddazz 11-12-2004 09:09 PM

no just change the urpmi mirrors to point to the 10.1 mirror you would like to use. I tend to remove my urpmi sources and then use the instructions from easyurpmi to setup the new ones.

jonr 11-12-2004 09:12 PM

Quote:

Originally posted by student04
Where do you configure urpmi to look for sources when upgrading? Is there a configuration file somwhere?

Thanks

I use Easy Urpmi at
http://plf.zarb.org/~nanardon/urpmiweb.php
to get sources for urpmi. Just follow the instructions beginning with choosing the proper version number of Mandrake.

Sometimes you have to try different mirrors before you'll find one that actually works.

You'll know if the process has been successful if, after quite a while of downloading data, you see a message referring to "0 obsolete header files."

The Mandrake site also has a page of mirrors for Mandrake stuff.

student04 11-12-2004 09:43 PM

Cool - works fine.

From the site:
Quote:

Also, you might want to type urpmi.removemedia -a first, in order to reinitialize urpmi's setup.
I did that, and then did the scripts that website told me to enter after configuring it. Then, in drakconf I see that it removed the Installation CD1, 2, and 3. Or, did they just get replaced by one of the sources i configured?

This was the script it produced for me:
Code:

urpmi.addmedia plf ftp://ftp.free.fr/pub/Distributions_.../mandrake/10.0 with hdlist.cz
urpmi.addmedia --update updates http://distro.ibiblio.org/pub/linux/...ates/10.0/RPMS with ../base/hdlist.cz
urpmi.addmedia main ftp://mirrors.secsup.org/pub/linux/m.../Mandrake/RPMS with ../base/hdlist.cz
urpmi.addmedia contrib ftp://mirrors.secsup.org/pub/linux/m...0/contrib/i586 with ../../i586/Mandrake/base/hdlist2.cz

I'm a little confused... I have never used urpmi to update anything really...
Is updates the security updates?
Is main the installation cds?
What is contrib?

Thanks

jonr 11-12-2004 10:07 PM

Udpates includes the security updates. Also updates to Mandrake software packages of all sorts.

Alas, when you do that removemedia thing, it does remove the three or four installation CD's lists along with everything else.

But you can put the CD's back in as sources. Go in the Mandrake Control Panel to package managing and choose "add sources" or something similar. (I don't have it on the screen right now, but it's self-evident.) Then it will let you browse in a dialog box, and you can choose the CD in your CD-ROM drive at the moment. Say it's CD #1. You find the directory that says "media" and possibly there's a "RPMS" directory inside that. Choose that. You might have to experiment a little but it won't hurt anything. Then do the same, adding the lists of rpm's from the other distro disks.

I don't know why they don't give an option to keep the CD lists. It would save a bunch of work. (Technically, there is such an option: you can specify the name of each medium you want to remove. See man page for "uprmi.removemedia.") With this option you don't use the -a switch (for "all").

The "contrib" sources are for packages not officially offered by Mandrake, but which various designers have made to work for Mandrake.

The "main" source is for distributions and such mainline Mandrake offerings.

Don't be alarmed if you see messages about lists possibly being out of date, etc. Those messages are informational, more than warning. They can generally be disregarded. However, sometimes a package can't be found because the list is out of date. Then it may be time to refresh your sources.

student04 11-12-2004 10:17 PM

Okay, thanks a lot! :)

bluefire 11-13-2004 09:55 AM

You can also use synaptic / apt to upgrade to 10.1 (or even to partially upgrade - just the packages you need.) The easy urpmi tool gives you all the info you need, but you have to make a few tweaks; here's my /etc/apt/sources.list file:

# plf 1
rpm ftp://ftp.easynet.fr/plf/mandrake/10.1/ hdlist i586

# updates 2
rpm ftp://ftp.phys.ttu.edu/pub/mandrakel...1/main_updates media_info/hdlist .
rpm ftp://ftp.cise.ufl.edu/pub/mirrors/m...cial/updates/1 0.1/main_updates media_info/hdlist .

# main 2
rpm ftp://ftp.rutgers.edu/pub/Mandrakeli...586/media/main media_ info/hdlist .
rpm ftp://mirror.aca.oakland.edu/pub/lin...10.1/i586/medi a/main media_info/hdlist .
rpm ftp://mirrors.secsup.org/pub/linux/m...cial/10.1/i586 /media/main media_info/hdlist .

# contrib 2
rpm ftp://ftp.rutgers.edu/pub/Mandrakeli.../media/contrib med ia_info/hdlist .
rpm ftp://mirror.aca.oakland.edu/pub/lin...10.1/i586/medi a/contrib media_info/hdlist .
rpm ftp://mirrors.secsup.org/pub/linux/m...cial/10.1/i586 /media/contrib media_info/hdlist .


NB 1 - the path given by easy urpmi for PLF is incorrect - you have to specify i586
NB 2 - the ".cz" needs to be removed from the hdlist files
NB 3 - you can have multiple mirrors of the same set of files specified, if you like (as I did above)

I find synaptic to be a much better package management tool than rpmdrake. Also, this can all coexist quite happily with urpmi, so you burn no bridges by trying. Just urpmi -i synaptic, edit your sources.list as above, and you're good to go.

sala 11-14-2004 09:54 AM

Thank you everyone for help!
I tried booting form a floppy and upgrading over network, this worked and now my system happily runs 10.1 :)
One thing that could not get upgraded for some reason was Xorg server, thats where telinit 3 and urpmi --auto-select came in very nicely


All times are GMT -5. The time now is 01:53 PM.