LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Mandriva PWP adding medium (https://www.linuxquestions.org/questions/mandriva-30/mandriva-pwp-adding-medium-768053/)

wheel 11-09-2009 08:01 PM

Mandriva PWP adding medium
 
I've got Mandriva 10 powerpack installed, so it wants to add the powerpack medium as part of my available packages. Unfortunately when I enter my user information and password I get a nondescript error message - there was an error adding the medium.

It's not my password as I tried using a different password and it then gives me a message saying my password is incorrect. When I use the right password, I just the an error adding the medium.

THoughts? Could it be because I subscribed to powerpack 2009?

SOLVED: Solution, as root, in a command terminal, run the following:
mdkapplet-restricted-helper 2010.0

jkerr82508 11-10-2009 03:28 AM

Redundant post deleted - OP has found the solution.

Jim

wheel 11-17-2009 02:07 PM

Follow up question - related.

I've got Mandriva 2010 PWP installed on a web server and want to add the powerpack distribution medium.

I can't use the solution I posted above; the mdkapplet isn't installed on my system. I suspect that's because I didn't install KDE or GNOME (it's a webserver, so no UI installed).

So question - how do I add mandriva pwp medium from a command prompt without having mdkapplet installed.

rolf 11-18-2009 12:14 AM

Yes, mdkapplet needs X, a gui.

The console command to use is urpmi.addmedia. See

Code:

man urpmi.addmedia
for reference.

On the machine where you have the gui, do, as root, for example:

Code:

[root@localhost Pan]# urpmq --list-url
[..]
Restricted x86_64 50991 https://user%40myisp.com:xxx@dl.mandriva.com/rpm/comm/2010.0/x86_64
Restricted Updates x86_64 92264 https://user%40myisp.com:xxx@dl.mandriva.com/rpm/comm/2010.0/updates/x86_64
Restricted i586 90575 https://user%40myisp.com:xxx@dl.mandriva.com/rpm/comm/2010.0/i586
Restricted Updates i586 88956 https://user%40myisp.com:xxx@dl.mandriva.com/rpm/comm/2010.0/updates/i586
[root@localhost Pan]#

Run as root, this urpmq query will echo the login password for your account, which makes it easy to copy/paste. You might want to print it out to use on the server.

This is on a 64-bit installation, which adds both architectures. For i586, you just need the 32-bit repos.

From the manual:

Code:

SYNOPSIS
          urpmi.addmedia [options] <name> <url>

You can use any unique <name> just, if spaces are in it, it makes it a pita to use it on cl, imo. I think you can just wrap quotes "" around a name with spaces but I avoid them, personally.

So, for example,

Code:

urpmi.addmedia restricted https://user%40myisp.com:xxx@dl.mandriva.com/rpm/comm/2010.0/i586

urpmi.addmedia --update restricted_updates https://user%40myisp.com:xxx@dl.mandriva.com/rpm/comm/2010.0/updates/i586

See the manual. The --update option causes MandrivaUpdate to look in such a repository for updates. Note the use of %40 for @ in your log in email addy. Adjust for your situation.


All times are GMT -5. The time now is 04:16 PM.