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 http://easyurpmi.zarb.org/ 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:

su

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

urpmi.addmedia main ftp://ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/main/release with media_info/hdlist.cz

urpmi.addmedia --update main_updates ftp://ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/main/updates with media_info/hdlist.cz

urpmi.addmedia contrib ftp://ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/contrib/release with media_info/hdlist.cz

urpmi.addmedia --update contrib_updates ftp://ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/contrib/updates with media_info/hdlist.cz

urpmi.addmedia --update plf-free ftp://ftp.univ-orleans.fr/logiciel-libre/plf/mandriva/2007.1/free/release/binary/i586/ with hdlist.cz

urpmi.addmedia --update plf-nonfree ftp://ftp.univ-orleans.fr/logiciel-libre/plf/mandriva/2007.1/non-free/release/binary/i586/ with hdlist.cz

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:

main:

  • Type of medium: FTP server
  • Name: main
  • URL: ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/main/release
  • Relative path to synthesis/hdlist: media_info/hdlist.cz

Do the same for the other repositories like this:

main_updates:

  • Type of medium: FTP server
  • Name: main_updates
  • URL: ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/main/updates
  • Relative path to synthesis/hdlist: media_info/hdlist.cz

contrib:

  • Type of medium: FTP server
  • Name: contrib
  • URL: ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/contrib/release
  • Relative path to synthesis/hdlist: media_info/hdlist.cz

contrib_updates:

  • Type of medium: FTP server
  • Name: contrib_updates
  • URL: ftp.tu-chemnitz.de/pub/linux/mandrakelinux/official/2007.1/i586/media/contrib/updates
  • Relative path to synthesis/hdlist: media_info/hdlist.cz

plf-free:

  • Type of medium: FTP server
  • Name: plf-free
  • URL: ftp.univ-orleans.fr/logiciel-libre/plf/mandriva/2007.1/free/release/binary/i586
  • Relative path to synthesis/hdlist: hdlist.cz

plf-nonfree:

  • Type of medium: FTP server
  • Name: plf-nonfree
  • URL: ftp.univ-orleans.fr/logiciel-libre/plf/mandriva/2007.1/non-free/release/binary/i586
  • Relative path to synthesis/hdlist: hdlist.cz

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

Comments

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 -  http://wiki.mandriva.com/en/Docs/Basic_tasks/Installing_and_removing_software

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

Mandriva 

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 http://my.mirror.com/pub/linux/mandriva/official/2007.1/i586

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.