LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-01-2005, 04:09 AM   #1
riccisit
Member
 
Registered: Jun 2004
Posts: 59

Rep: Reputation: 15
I lost my urpmi database...how to restore it ?


Hi,

trying to install a driver, I lost my urpmi database (it's too long to explain, but this things happen when you're a newbie and act as root).

I'd like to restore my previous situation. I'm not talking about extra repositories (I can find them on easyurpmi, no problem). I'm talking about my 6 cd's set of PowerPack 10.1. I got no idea how to indicate to my system where it should look for them. And...my support credits at Mandriva are expired

Anyone can help me ?

Thank you

Fabio
 
Old 10-01-2005, 01:25 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Use rpmdrake, the instructions are fairly straight forward. Also take a look here under the removable sources section.
 
Old 01-21-2006, 04:09 PM   #3
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
Question I need to add the powerpack cds back also

Yeah, I need to do the same thing. I used easyurpmi to add external repositories, but before I did that I typed the command urpmi.removemedia -a becasue the easyurpmi suggrested that I should do that first.

So now, the list of sources under RPM does not show the powerpack CDs anymore. I looked at that RPMDRAKE HOWTO but I did not find how to add the CDs back into the list. Any ideas?

THANX!!!
 
Old 01-21-2006, 04:23 PM   #4
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Rep: Reputation: 35
No need to do that, you don't really want that anyway.

d-1
 
Old 01-21-2006, 04:28 PM   #5
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Rep: Reputation: 35
Just run "urpmi rpmdrake" in Konsole....


d-1
 
Old 01-21-2006, 04:38 PM   #6
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
urpmi rpmdrake says packages already installed.

So, I dont want to do that because the CDs are not updated like the repositories online?
 
Old 01-21-2006, 05:23 PM   #7
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
Hey I found other info that says:

Open up a console, enter "su" then root's password.

Now you enter "urpmi.addmedia [NAME] [PATH] with [RELATIVE PATH TO HDLIST]". Where [NAME] is the name you want the source to have, [PATH] is the path to the directory containing the RPM's in one of the following ways:

file://[path]
removable://[path]

and [RELATIVE PATH TO HDLIST] is the relative path to the hdlist file for the source, which, for a Mandrakelinux CD, will be in ../base/hdlist.cz for normal source and ../base/hdlist2.cz for the contrib source. The hdlist files are not usually stored in the same directories as the RPMs they are for.

I'm just trying to learn HOW to do stuff- Am guessing as to WHY I shouldn't do this...
 
Old 01-21-2006, 05:25 PM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
I thought I was the only idiot that did that. I deleted the default file per easyurpmi instructions also.
It's been a while but I think the urpmi.addmedia as linked by reddazz is what I used to restore my DVD as an install source.
 
Old 01-21-2006, 05:58 PM   #9
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
Its not working....

I put CD#1 in, opened Add A Medium, gave it a name, (CDROM1), typed /mnt/cdrom/media/main in the path/mount point, checked relative path to synthesis/hdlist and typed /media_info/synthesis.hdlist.cz.

However, it was unable to open it and it failed. Any suggestions? Thanx again!
 
Old 01-21-2006, 06:09 PM   #10
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Checking my history it appears I used:
urpmi.addmedia --distrib removable://mnt/cdrom
 
Old 01-21-2006, 06:24 PM   #11
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
wow that was weird...

OK I typed urpmi.addmedia --distrib removable://mnt/cdrom and it added a list of powerpack cds, but they are #s 11,21,31,32,33,34,35,41,51,61,71,and 72.

I only had discs #1-4...

???????????
 
Old 01-21-2006, 07:39 PM   #12
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
I only have one LE 2005 DVD but it is listed as 6. 1-6.
Maybe that is correct. Did you start with a fresh urpmi.cfg?
 
Old 01-21-2006, 10:26 PM   #13
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
hmmmm nope I just tried to add in those lines- maybe I should remove -a and then try again?
 
Old 01-21-2006, 10:36 PM   #14
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
I really don't know if it will do it any different but you can always save a backup copy and see what happens. That may just be the way it is.
You could always try adding a program and see if it works okay. If it works, it works...
 
Old 01-22-2006, 03:14 AM   #15
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
Red face hey thanx 4 the advice

i'm too tired to mess with it anymore tonight- I realize that it's probably irrelevant to add in the default cds in the repositories, but I was just trying to figure out how to put them back for knowledge's sake. If/when I do get it back the way it was, I'll post it here- I really should be doing some schoolwork anywayz...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
urpmi database locked? otto k Mandriva 9 05-17-2005 11:37 AM
urpmi.update --all / urpmi database locked thepoint Mandriva 5 11-05-2003 06:03 PM
Urpmi database oldrelac Linux - Newbie 2 08-08-2003 01:04 PM
Urpmi database update LinuZ Linux - Software 3 08-05-2003 12:07 PM
Had to restore database from backup - about 5 minutes lost jeremy LQ Suggestions & Feedback 0 01-21-2001 10:31 PM

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

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

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