Jump to content

How to activate 'Non-free' from command line?

Recommended Posts

After installing the 2010.0 free version and adding some repositories using the following lines


urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'

urpmi.addmedia --distrib --mirrorlist 'http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list'


I find that 'Non-free' and 'Non-free Updates' are not active.


How can I activate the 'Non-free' and 'Non-free Updates' repositories from command line?



[moved from Installing Mandriva by spinynorman]

Link to comment
Share on other sites

I've never used $MIRRORLIST, but I think that this should work

urpmi.update --no-ignore <medium>

See man urpmi.update for details.


It's probably easier to edit /etc/urpmi/urpmi.cfg and delete the ignore line in the stanzas for those media.



Link to comment
Share on other sites

Yes, "urpmi.update --no-ignore <medium>" worked but for some reason I had to follow that with another line "urpmi.update -v Non-free 'Non-free Updates'" to complete the job. I will be installing Mandriva on a bunch of machines, so I created a short script to configure the repository media.


# To see which media are active
# urpmq --list-media active

# reinitialize urpmi's setup
urpmi.removemedia -a

# add some repository media using commands from http://easyurpmi.zarb.org/
urpmi.addmedia --distrib --mirrorlist 'http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list'
urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'

# activate "Non-free" and "Non-free Updates"
urpmi.update --no-ignore Non-free 'Non-free Updates'
urpmi.update -v Non-free 'Non-free Updates'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...