Yes, mdkapplet needs X, a gui.
The console command to use is urpmi.addmedia. See
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.