Software media are the different “sources” where you can install packages from. There must be at least one medium defined for urpmi to work. Predefined media include the ones you used to install your system (network, CD, DVD, etc.). You should define other media to install bugfixes and security updates. Adding and removing media is easy, but the syntax must be strictly respected.
urpmi.addmedia <name> <URL>
This command allows you to add a new medium either from a local drive, a removable device (CD/DVD), or from the network through the HTTP, FTP, NFS, ssh or rsync protocols. The URL syntax varies for each of these media so you are encouraged to consult the urpmi.addmedia(8) man page before using it.
![]() | Tip |
---|---|
If you are
adding a new update medium, use the |
You can use online resources such as the Easy Urpmi Page if you don't know where to find media containing useful applications specially packaged for your Mandriva Linux system. The Mandriva Club site also provides the Urpmi media module for test and contribution packages.
urpmi.removemedia <name>
This command will
simply remove the medium name
. If you cannot
remember the medium's name, issuing
urpmi.removemedia alone on the command line will
list all defined media.
urpmi.update <name>
This command
scans the named medium and updates the package list associated
with it. This is useful for media which change often, such as the
security and bugfix updates ones. Use the -a
option to rescan all the defined media.