LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-09-2008, 03:34 AM   #1
davidmuraya
LQ Newbie
 
Registered: Sep 2008
Location: Nairobi
Distribution: Fedora 9
Posts: 10

Rep: Reputation: 0
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?
 
Old 09-09-2008, 03:48 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
Old 09-09-2008, 03:52 AM   #3
davidmuraya
LQ Newbie
 
Registered: Sep 2008
Location: Nairobi
Distribution: Fedora 9
Posts: 10

Original Poster
Rep: Reputation: 0
Reply

Thanks,
I tried that but it still shows not repomd.xml is not found.
how can I enclose the whole thing in quotes?
 
Old 09-09-2008, 04:15 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
You can use "\" to escape the spaces, like this:
Code:
baseurl= file:///media/Fedora\ 8\ i386\ DVD/Packages
 
Old 09-09-2008, 04:25 AM   #5
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by davidmuraya View Post
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"

Last edited by dv502; 09-09-2008 at 04:43 AM.
 
Old 09-09-2008, 05:09 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think your problem is the path, not the representation. What is the full path to repomd.xml?
 
Old 09-09-2008, 05:14 AM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
See post 5 http://www.linuxquestions.org/questi...ro-dvd-652904/
 
Old 09-09-2008, 05:16 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
Old 09-10-2008, 04:13 AM   #9
davidmuraya
LQ Newbie
 
Registered: Sep 2008
Location: Nairobi
Distribution: Fedora 9
Posts: 10

Original Poster
Rep: Reputation: 0
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?

Last edited by davidmuraya; 09-10-2008 at 04:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xargs and spaces in file path mgichoga Linux - Software 2 01-04-2008 01:57 PM
makefiles with spaces in path teuf Programming 7 08-30-2007 04:04 AM
tsmbfs simple path name with spaces spooge Linux - Networking 4 08-31-2006 01:32 AM
how to expand wildcards in a path with spaces? sts Linux - General 1 11-12-2005 02:50 PM
using rsync - one of the folders in path has spaces??? jgruss Linux - Networking 10 07-07-2004 08:27 PM


All times are GMT -5. The time now is 02:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration