Page 1 of 1

how to configure mageia 1 urpmi as --distrib + Tainted?

PostPosted: Feb 13th, '12, 20:21
by pfaff
urpmi gurus, is there a straighforward command line method to configure mageia 1 urpmi media with the default distribution media (from $MIRRORLIST)
and also include "Tainted Release" and "Tainted Updates"?

The way I would do this now is with these three steps:

1) urpmi.removemedia -a
2) urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'
3) edit /etc/urpmi/urpmi.cfg and removed the "ignore" line from the "Tainted Release" and "Tainted Updates" entries.

Is there a way I can avoid doing step 3?

Re: how to configure mageia 1 urpmi as --distrib + Tainted?

PostPosted: Feb 13th, '12, 22:04
by doktor5000
Yup, you can use
Code: Select all
urpmi.update --no-ignore tainted
which would enable all tainted repos, maybe do the same for nonfree if not yet enabled, and then do
Code: Select all
urpmi.update --ignore backports && urpmi.update --ignore debug
which would disable all backports and testing repos. You could experiment with urpmi.update --no-ignore to see if you can directly enable tainted_release and tainted_updates repos. Maybe
Code: Select all
urpmi.update --no-ignore "tainted_release" && urpmi.update --no-ignore "tainted_updates"
already works? Just put the exact repo name between the quotes.
Can't check currently as i'm not sitting in front of a Mageia system, and writing this from the top of my head.

Re: how to configure mageia 1 urpmi as --distrib + Tainted?

PostPosted: Feb 17th, '12, 00:25
by wilcal
Lemme share the script that I use to set up my local repo.

First here's what I use to clear the sources from the local install:

urpmi.removemedia -a

that clears everything out. Then I run the following commands
in a su terminal as a script file. This is for 32-bit Mageia:

clear
urpmi.addmedia core ftp://mageia:xxxxx@192.168.1.2//distrib ... re/release with media_info/hdlist.cz
urpmi.addmedia --update core_updates ftp://mageia:xxxxx@192.168.1.2//distrib ... re/updates with media_info/hdlist.cz
urpmi.addmedia nonfree ftp://mageia:xxxxx@192.168.1.2//distrib ... ee/release with media_info/hdlist.cz
urpmi.addmedia --update nonfree_updates ftp://mageia:xxxxx@192.168.1.2//distrib ... ee/updates with media_info/hdlist.cz
urpmi.addmedia tainted ftp://mageia:xxxxx@192.168.1.2//distrib ... ed/release with media_info/hdlist.cz
urpmi.addmedia --update tainted_updates ftp://mageia:xxxxx@192.168.1.2//distrib ... ed/updates with media_info/hdlist.cz
clear
urpmi.update -a
sleep 10
exit
exit

The local repo is at an ftp server on 192.168.1.2. User Mageia. I've been using this for years.
The repo will now appear on:

MCC -> Configure media sources

Re: how to configure mageia 1 urpmi as --distrib + Tainted?

PostPosted: Feb 17th, '12, 12:56
by isadora
Please all:

Use code-tags or quotation-tags to keep everything clear and readable!!!