LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-10-2005, 04:15 AM   #1
anjani.78
Member
 
Registered: Mar 2005
Location: india
Distribution: debian , redhat
Posts: 30

Rep: Reputation: 15
Angry yum not workind with fedora3


hello to all


i tried installing yum for local repository. but its not working.
i just created directory.
# /yum/fedora/core/3/base/ (all rpms here)
than i did
# createrpro /yum/fedora/core/3/base
it updated the database and created directory by name /repodata
there are some .xml.gz files inside it.

after this i created sample.repo under
#/etc/yum.repos.d/sample.repo
and edited this file with this contents.

[sample]
name=my sample repo
baseurl=file://yum/fedora/core/3/base/
enabled=1
~
than i tried using
yum install k3b
but its not working
plese help me out
thanks
 
Old 08-10-2005, 04:57 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
File URLs always require three slashes, e.g.:

baseurl=file:///yum/fedora/core/3/base/

If yum has a problem with a repository then it should fail with an error message, which you can post here for somebody to interpret.
 
Old 08-11-2005, 01:57 AM   #3
anjani.78
Member
 
Registered: Mar 2005
Location: india
Distribution: debian , redhat
Posts: 30

Original Poster
Rep: Reputation: 15
i
tried chainging to 3 slashes.
but still it not installing any package, and there is empty file by name yum.d under
/var/log/
and it showing yum succeded at the time of startup
 
Old 08-11-2005, 04:21 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Either yum isn't using your repository or the repository is OK, since yum fails if any of the enabled repositories cannot be accessed.

I'm not sure whether or not k3b is in Core, the package I use for testing is "tsclient", which is and has minimal dependencies. Try this command:

su -c 'yum list tsclient'

What is the result ?
 
Old 08-12-2005, 05:39 AM   #5
anjani.78
Member
 
Registered: Mar 2005
Location: india
Distribution: debian , redhat
Posts: 30

Original Poster
Rep: Reputation: 15
# yum list tsclient
repmod.xml 100% ==============| 951 kb
setting up Repo:base
cannot find a valid baseurl for repo : base

this my output for above mentioned command

thanks for support
 
Old 08-12-2005, 07:36 AM   #6
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
OK, that's a standard error to say that the repository URL can't be accessed. You'd actually get the same result if createrepo failed, since then yum wouldn't recognise the directory as a repostory.

Things to check:

- That the repository URL is exactly right, i.e.

ls /yum/fedora/core/3/base/

Does show the directory with all the RPMs.

- That you are using su or sudo to run the yum command with root privileges. Yum requires root even for the search commands to work fully. If you execute without root against a file:/// repository then you may also hit the problem that your account doesn't have the permissions to access the repository directory.

- That you haven't got any SELinux problems, as SELinux issues often look like file permission errors. To make sure that everything is OK:

/sbin/fixfiles relabel
 
  


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
New member, use Fedora3. sielon LinuxQuestions.org Member Intro 1 05-21-2005 03:23 PM
can't login to fedora3 keiwu Linux - Newbie 6 02-14-2005 04:59 PM
Screen on Fedora3 wimanx Linux - Software 2 02-04-2005 12:17 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration