LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum installation problem in fedora 11 (https://www.linuxquestions.org/questions/linux-newbie-8/yum-installation-problem-in-fedora-11-a-906510/)

shanky 10-05-2011 04:43 AM

yum installation problem in fedora 11
 
hii
i am trying to install mercurial in my fedora 11 so when i give the command yum install mercurial i get the error

"Loaded plugins: refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again"

in fact this is happening whenever i try and use the command "yum"
what is that i am missing out ??
Thanks

shanky 10-05-2011 05:27 AM

i do have the yum package installed so thats not the issue..
i downloaded the .rpm file for mercurial but after that i am stuck..please help me out ..i need to get mercurial installed in my system

thanks..

knudfl 10-05-2011 05:44 AM

# yum install mercurial
Fedora 11 was moved to the "old archive" long time ago :
A new file, fedora.repo is required in /etc/yum.repos.d/, example i386
Code:

[fedora11]
name=Fedora11-i386
baseurl=http://download.fedora.redhat.com/pub/archive/fedora/linux/releases/11/Everything/i386/os/
enabled=1
gpgcheck=1

[fc11-updates]
name=Fedora11-updates-i386
baseurl=http://download.fedora.redhat.com/pub/archive/fedora/linux/updates/11/i386/
enabled=1
gpgcheck=1

If you have the package, 'yum localinstall' can also be used :
# yum localinstall --nogpgcheck mercurial-1.5.3-1.fc11.i586.rpm

..

shanky 10-05-2011 06:00 AM

thanks a lot..will try it out..

shanky 10-05-2011 07:16 AM

hii
i am a little confused here where should be implementing the code you gave..sorry for the trouble..

knudfl 10-05-2011 07:20 AM

*


The code is the required replacement for the text in /etc/yum.repos.d/fedora.repo

shanky 10-05-2011 07:50 AM

when i type in the command "/etc/yum.repos.d/fedora.repo" the console shows
"bash: /etc/yum.repos.d/fedora.repo: Permission denied"

???

knudfl 10-05-2011 08:05 AM

A file location / a text file cannot be used as a command.

Create a new text file by name fedora.repo in /home/<name>/.
Copy / paste the text into the file, and save.

Type : su <password> , in a terminal window.
And then : cp fedora.repo /etc/yum.repos.d/

shanky 10-05-2011 08:09 AM

thanks a lot ..will try it out and let you know..


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