Thursday, December 21, 2006

A Small Trick in Setting Local YUM Repository

I wanted to setup local yum repository for further installation, but I found it has a little problem:

FC6's DVD was mounted on /media/FC_6 i386 DVD, so I put "baseurl=file:///media/FC_6 i386 DVD" in /etc/yum.repos.d/fedora-core.repo. However, I found an error below when I yum something:

"Options Error: Error parsing 'file:///media/FC_6 i386 DVD/': URL must be http, ftp, file or https not ""

Why?

The reason is the spaces. After I changed "FC_6 i386 DVD" to "FC_6%20i386%20DVD", the local YUM repository works well.

No comments: