Friday, January 9, 2015

Yum is not working in fedora 15

 Hi folks,

We are using fedora servers in my office but  yum is not working so kindly help me how to create yum locally when i am trying to install any gcc then following error accord.

 yum install gcc
Loaded plugins: blacklist, langpacks, presto, refresh-packagekit, whiteout
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again
 

Regards.
Amol Patil..
--
You received this message because you are subscribed to the Google Groups "Sadhiq Linux Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sadhiq-linux-group+unsubscribe@googlegroups.com.
To post to this group, send email to sadhiq-linux-group@googlegroups.com.
Visit this group at http://groups.google.com/group/sadhiq-linux-group.
For more options, visit https://groups.google.com/d/optout.
Reply | Reply to all | Forward | Print | Delete | Show original

Add star 

Multazim Deshmukh

<multazim.deshmukh0786@gmail.com>
Sat, Jan 3, 2015 at 9:49 AM
Reply-To: sadhiq-linux-group@googlegroups.com
To: sadhiq-linux-group@googlegroups.com
Hi,
1) Change https to http in mirrorlist URL of fedora.repo file & do "yum clean all" and try to install.
for more solutions see: http://codeketchup.blogspot.in/2014/01/how-to-fix-cannot-retrieve-metalink-for.html

2)
Use below steps for setting local repo :-

find the DVD/Iso image & copy all the rpm files in you local machine
say you are copying all rpms from DVD/ISO to path /rpmrepos

1 - # mkdir /rpmrepos
2 - # cp  /<Path of rpms in mounted DVD>/*  /rpmrepos

3 -  install rpm create-repo
      # cd /rpmrepos
      # rpm -ivh create-repo*

4 - create meta data
     # createrepo -v /rpmrepos

5 - create file in /etc/yum.repos.d/
    # vi mybase.repo

add below entry :-

[base]
name=mybase
baseurl=file:///rpmrepos
enabled=1
gpgcheck=0

6 - Test RPM repo 
    # yum repolist

7 try to install any rpm using yum .
   # yum install httpd

its done.
--
Thanks & Regards
Multazim Deshmukh
9619495816

Blog: multazimd.blogspot.in
Reply | Reply to all | Forward | Print | Delete | Show original

Add star 

Ashwin Nadar

<nadarashwin@gmail.com>
Wed, Jan 7, 2015 at 2:33 AM
Reply-To: sadhiq-linux-group@googlegroups.com
To: sadhiq-linux-group@googlegroups.com
hey dude i did face the same issue
do one thing
follow the steps below

1. sudo yum clean all
2. sudo yum upgrade ca-certificates --disablerepo=fedora    {you need to mention with which repo you are facing this issue}
2. yum list all

good luck

No comments:

Post a Comment