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.

 

Jim

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...