LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 07-01-2015, 12:54 AM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
Old 07-01-2015, 11:19 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
Is this for 32-bit or 64-bit systems?
 
Old 07-02-2015, 02:36 AM   #3
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
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
 
1 members found this post helpful.
Old 07-02-2015, 07:11 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by frankbell View Post
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.
 
Old 07-02-2015, 07:15 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by jkerr82508 View Post
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?
 
1 members found this post helpful.
Old 07-02-2015, 08:32 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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.
 
Old 07-02-2015, 08:46 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by frankbell View Post
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-
 
Old 07-02-2015, 08:51 PM   #8
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
Quote:
Originally Posted by Ztcoracat View Post
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
 
Old 07-02-2015, 08:53 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by jkerr82508 View Post
Thanks, Jim.

There's no doubt now.
 
Old 07-10-2015, 03:50 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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
 
Old 07-10-2015, 06:42 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by frankbell View Post
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?
 
Old 07-10-2015, 08:39 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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.
 
Old 07-11-2015, 11:43 AM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by frankbell View Post
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.-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mageia won' t boot after deleting a Mageia Test partition - GRUB Error 17 Milo4t Mandriva 6 05-04-2015 02:13 AM
LXer: Mageia 1 Support Terminated, Upgrade to Mageia 2 LXer Syndicated Linux News 0 12-02-2012 08:00 AM
[SOLVED] Can't Boot Mageia 2 after Upgrading from Mageia 1 gdawg Mageia 3 06-24-2012 10:20 AM
LXer: Open Source: Mageia 1 to Mageia 2 Upgrade LXer Syndicated Linux News 0 05-22-2012 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration