Mandrake Linux Archives: cooker@linux-mandrake.com

Mandrake Linux: cooker@linux-mandrake.com


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

  • From: Rafael Garcia-Suarez
  • Subject: [Cooker] Variables in urpmi media urls
  • Date: 14 Feb 2005 18:00:28 -0000

The latest version of urpmi (4.6.16-2mdk) implements (after
the suggestion of Buchan Milne and a patch by Michael Scherer)
the ability to put variables in media URLs (thus giving
industrial-strength deployment features to this tool :)

For example you could define a media with this URL :

    # urpmi.addmedia main /mnt/mandrake/$RELEASE/$ARCH/media/main \
        with ../media_info/hdlist_main.cz

and it will replace $RELEASE and $ARCH with the relevant current values.

The recognized variables are currently :

    RELEASE : current mdk version (or "cooker" on a cooker system)
    ARCH : rpm architecture
    HOST : current canonical hostname

ARCH and RELEASE are taken from /etc/mandrakelinux-release.

If you think about other variables that might be useful, let me know.



Date Index | Thread Index

Search the archive:



To (un)subscribe from/to the lists:

Sympa mailing lists server.





Fund the Mandriva Linux project

Looking for a job?