The Perfect Desktop - Mandriva 2007 Spring Free (Mandriva 2007.1) - Page 4

5 Add Online Software Repositories

In this step we will add some online repositories that contain all packages from our CDs plus updated packages plus additional packages that are not on the CDs. As this makes the CDs redundant, we will remove them from the repository list.

There are two ways of doing this: on the command line or in Mandriva's Control Center. I will describe both ways here. You can use the one or the other, the result is the same.


5.1 Command Line

Visit in your browser and follow the wizard. Enable the following repositories:

  • contrib
  • contrib_updates
  • main
  • main_updates
  • plf-free
  • plf-nonfree

In the end, the wizard will show you a list of commands to run to change the repositories list of your Mandriva desktop:

Now open a terminal (Applications > Accessories > Terminal) and become root by typing:


Then run the commands from the wizard, e.g.:

urpmi.addmedia main with media_info/

urpmi.addmedia --update main_updates with media_info/

urpmi.addmedia contrib with media_info/

urpmi.addmedia --update contrib_updates with media_info/

urpmi.addmedia --update plf-free with

urpmi.addmedia --update plf-nonfree with

And to remove the Mandriva DVD from the repository list, run

urpmi.removemedia '"Mandriva Linux - 2007.1 (Free) - Installer"'

urpmi.removemedia '"Mandriva Linux - 2007.1 (Free) - Installer" (contrib)'


5.2 Control Center

Open the Control Center and go to Software Management > Select from where software packages are downloaded when updating the system:

Click on Yes when you're asked Is it ok to continue?:

In the Media Manager you will find your Mandriva DVD. Please disable it and click on Add custom... to add other repositories:

We will now add repositories with the names main, main_updates, contrib, contrib_updates, plf-free, plf-nonfree. These are FTP repositories. For example, to add the main repository, fill in:


  • Type of medium: FTP server
  • Name: main
  • URL:
  • Relative path to synthesis/hdlist: media_info/

Do the same for the other repositories like this:


  • Type of medium: FTP server
  • Name: main_updates
  • URL:
  • Relative path to synthesis/hdlist: media_info/


  • Type of medium: FTP server
  • Name: contrib
  • URL:
  • Relative path to synthesis/hdlist: media_info/


  • Type of medium: FTP server
  • Name: contrib_updates
  • URL:
  • Relative path to synthesis/hdlist: media_info/


  • Type of medium: FTP server
  • Name: plf-free
  • URL:
  • Relative path to synthesis/hdlist:


  • Type of medium: FTP server
  • Name: plf-nonfree
  • URL:
  • Relative path to synthesis/hdlist:

These repositories should all be enabled, and updates should be enabled for main_updates, contrib_updates, plf-free, and plf-nonfree. Your repository list should now look like this:

Click on Ok to leave the Media Manager.

Share this page:

4 Comment(s)

Add comment


From: at: 2007-05-11 06:48:27

Thanks to Falko for this great guide! Just some extra pointers:

In addition to the methods listed here, there's also a simple official way to add the official Mandriva software repositories. It's explained at the Wiki -

Setting up repositories with this method will set up the official non-free repository. This repository contains the Java plugin, so it is not necessary to download it from MCNL as recommended in the article: you can just install the java-1.5.0-sun-plugin package.

Finally, please note that the Mandriva GTKPod package does in fact install a menu entry. It's just that if you switch to the GNOME menu system as Falko recommends, you don't see it, as the GNOME menus do not cover all applications. If you stick with the default Mandriva menu system, you will see the GTKPod menu entry. Also contrary to what the article says, GTKPod does come with an icon: /usr/share/icons/gtkpod.png . There are larger and smaller versions in /usr/share/icons/large and /usr/share/icons/mini .

Thanks again to Falco for the guide!

Adam Williamson


From: at: 2007-05-11 12:56:14

When there's both a PLF and an MDV version of a package, they're usually exactly the same (PLF and MDV actually share several .src.rpms) except that some legally dubious features are enabled in the PLF package but not in the MDV package. So it usually makes more sense to install the PLF package than the MDV one. This is the case for, for e.g., xine, gtkpod and vlc in the list of packages. The PLF builds all include support for patent-encumbered codecs that aren't enabled in the MDV build.

From: at: 2007-05-14 14:13:55

instead of two commands (urpmi.update -a ; urpmi --auto-select) there is a single command that performs the same: urpmi --auto-update

From: at: 2007-05-11 11:26:27

It would be nice if you had not relied on previous experience for documenting how to add media. For example, you can add all the media for the distribution (excluding PLF) with one command, e.g.:

$ urpmi.addmedia --distrib

The GUI way with Mandriva Control Center is the same. From the main Media manager screen, click "Add", then choose "Distribution sources", and choose a mirror.

Note that all available media are added, but some are disabled by default (specifically the backport and test media). They can easily be enabled from the Media Manager.  Adding the --interactive flag to the urpmi.addmedia commain will allow you to choose which media should be enabled when initially adding them.