LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mageia (https://www.linuxquestions.org/questions/mageia-97/)
-   -   How To Upgrade Mageia 4 to Mageia 5 In VBox using the CLI (https://www.linuxquestions.org/questions/mageia-97/how-to-upgrade-mageia-4-to-mageia-5-in-vbox-using-the-cli-4175546885/)

Ztcoracat 07-01-2015 12:54 AM

How To Upgrade Mageia 4 to Mageia 5 In VBox using the CLI
 
As you well know Mageia is now Mageia 5.
So if you still have Mageia 4 in Virtual Box installed here's how to upgrade to Mageia 5 using the command-line.

This took about an hour and ten minutes on my CentOS box but that's with WiFi.

All commands should be executed as root.

I issued su instead of sudo and didn't have any problems running the necessary commands.

Step 1
Code:

urpmi --auto-update --auto -v
Step 2
Code:

urpmi.removemedia -av
Step 3
Code:

urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.5.i586.list'
* If your 64 bit than you would change the argument to x86.

Step 4
Code:

urpmi --replacefiles --auto-update --auto -v
When done your Mageia should reboot. If not run:
Code:

shutdown -r now
To check you can run cat /etc/os-release

Here is the page I followed to upgrade to Mageia 5 in VBox in this link.
http://maximumhoyt.com/

It worked for me and the new Mageia 5 in VBox runs great.

frankbell 07-01-2015 11:19 PM

Is this for 32-bit or 64-bit systems?

jkerr82508 07-02-2015 02:36 AM

The only difference between upgrading 32bit and 64bit Mageia guests is in Step 3. The command quoted is for 32bit; for 64bit change "i586" near the end of the command to "x86_64".

Jim

Ztcoracat 07-02-2015 07:11 PM

Quote:

Originally Posted by frankbell (Post 5385943)
Is this for 32-bit or 64-bit systems?

This is for a 64-bit machine that is the host that's running a 32-bit os (Mageia) in VBox.

For whatever the reason I can not run a 64-bit guest in VBox on this 64-bit machine.

I think it may be a graphical acceleration issue.

Ztcoracat 07-02-2015 07:15 PM

Quote:

Originally Posted by jkerr82508 (Post 5385997)
The only difference between upgrading 32bit and 64bit Mageia guests is in Step 3. The command quoted is for 32bit; for 64bit change "i586" near the end of the command to "x86_64".

Jim

Your right, thank you. It should be:
Code:

urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.5.x86_64.list'
Do you agree?

frankbell 07-02-2015 08:32 PM

Thank you both. I thought that looked like a 32-bit command string.

I'll try the 64-bit on my Magiea box tomorrow if I work up the nerve.:)

Ztcoracat 07-02-2015 08:46 PM

Quote:

Originally Posted by frankbell (Post 5386435)
Thank you both. I thought that looked like a 32-bit command string.

I'll try the 64-bit on my Magiea box tomorrow if I work up the nerve.:)

Your Welcome-:)

jkerr82508 07-02-2015 08:51 PM

Quote:

Originally Posted by Ztcoracat (Post 5386411)
Your right, thank you. It should be:
Code:

urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.5.x86_64.list'
Do you agree?

If in doubt, check here:

https://wiki.mageia.org/en/Mageia_5_...rpmi_.28CLI.29

Jim

Ztcoracat 07-02-2015 08:53 PM

Quote:

Originally Posted by jkerr82508 (Post 5386443)

Thanks, Jim.

There's no doubt now.

frankbell 07-10-2015 03:50 PM

I finally got around to upgrading my Mageia v. 4 to v. 5. I knew there was an automated way to do it, because I'd used it to upgrade from v. 3 to v. 4, but that was well over a year ago.

I used this command from within the GUI:

Code:

su
mgaapplet-upgrade-helper --new_distro_version=5

Details here: https://wiki.mageia.org/en/Mageia_5_...a_the_Internet

Ztcoracat 07-10-2015 06:42 PM

Quote:

Originally Posted by frankbell (Post 5389821)
I finally got around to upgrading my Mageia v. 4 to v. 5. I knew there was an automated way to do it, because I'd used it to upgrade from v. 3 to v. 4, but that was well over a year ago.

I used this command from within the GUI:

Code:

su
mgaapplet-upgrade-helper --new_distro_version=5

Details here: https://wiki.mageia.org/en/Mageia_5_...a_the_Internet

Cool-

How long did the upgrade take?

frankbell 07-10-2015 08:39 PM

A couple of hours or maybe a little more. I went downstairs for dinner . . . .

Of course, this was to bare metal and I have lots of programs installed on this machine.

Ztcoracat 07-11-2015 11:43 AM

Quote:

Originally Posted by frankbell (Post 5389905)
A couple of hours or maybe a little more. I went downstairs for dinner . . . .

Of course, this was to bare metal and I have lots of programs installed on this machine.

A couple of hours isn't bad for a bare metal install.

Enjoy your new Mangeia frankbell.-:)


All times are GMT -5. The time now is 03:10 PM.