LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to write a the baseurl of a path that has spaces (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-write-a-the-baseurl-of-a-path-that-has-spaces-668560/)

davidmuraya 09-09-2008 02:34 AM

How to write a the baseurl of a path that has spaces
 
Hi,
I would like to use a Fedora DVD as a repository.
The problem is the Fedora DVD has spaces thus yum is not able to find repomd.xml
the baseurl= file:///media/Fedora 8 i386 DVD/Packages
How can I write the space parameter in the repo file?

billymayday 09-09-2008 02:48 AM

You may be able to enclose the whole thing it quotes, but try subsituting "%20" for " ", so

baseurl= file:///media/Fedora%208%20i386%20DVD/Packages

davidmuraya 09-09-2008 02:52 AM

Reply
 
Thanks,
I tried that but it still shows not repomd.xml is not found.
how can I enclose the whole thing in quotes?

bathory 09-09-2008 03:15 AM

You can use "\" to escape the spaces, like this:
Code:

baseurl= file:///media/Fedora\ 8\ i386\ DVD/Packages

dv502 09-09-2008 03:25 AM

Quote:

Originally Posted by davidmuraya (Post 3274188)
Thanks,
I tried that but it still shows not repomd.xml is not found.
how can I enclose the whole thing in quotes?

Use double quotes in variable strings if you wish to use spaces.

baseurl="file:///media/Fedora 8 i386 DVD/Packages"

billymayday 09-09-2008 04:09 AM

I think your problem is the path, not the representation. What is the full path to repomd.xml?

billymayday 09-09-2008 04:14 AM

See post 5 http://www.linuxquestions.org/questi...ro-dvd-652904/

billymayday 09-09-2008 04:16 AM

I just mounted an F* iso, and I think you need t delete the Packages bit from the end, so

baseurl= file:///media/Fedora%208%20i386%20DVD

davidmuraya 09-10-2008 03:13 AM

Thanks.
The "\" does not work.
The "%20" does not also work
The full quoting (baseurl = "file:///media/Fedora 8 i386 DVD/") does not also work
They all show error <Must be file, URL, http or ftp>
I finally decided to copy the whole dvd to a folder, createrepo.

Is it possible to use a Windows Shared folder on a netork as a repository?
How would I write the entry in the repo file?
Suppose the path is:
\\192.168.0.100\MyStuff\ how would I write this path in the baseurl?


All times are GMT -5. The time now is 05:23 PM.