LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum not workind with fedora3 (https://www.linuxquestions.org/questions/linux-newbie-8/yum-not-workind-with-fedora3-351769/)

anjani.78 08-10-2005 04:15 AM

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

hob 08-10-2005 04:57 PM

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.

anjani.78 08-11-2005 01:57 AM

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

hob 08-11-2005 04:21 AM

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 ?

anjani.78 08-12-2005 05:39 AM

# 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

hob 08-12-2005 07:36 AM

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


All times are GMT -5. The time now is 08:36 PM.