Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I let someone try to install the latest version of PHP on my CentOS 6.5 box but they didn't succeed. They tried to install Remi Repo but that doesn't seem to be working now either.

When I'm trying to update the php I get the following error:

Error: Cannot find a valid baseurl for repo: rpmfusion-free

rpmfusion-free.repo:

[rpmfusion-free]
name=RPM Fusion for Fedora $releasever - Free
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

[rpmfusion-free-debuginfo]
name=RPM Fusion for Fedora $releasever - Free - Debug
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

[rpmfusion-free-source]
name=RPM Fusion for Fedora $releasever - Free - Source
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
share|improve this question

closed as off-topic by Bart De Vos, Ward, mdpc, Falcon Momot, Journeyman Geek Feb 8 at 15:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Bart De Vos, Ward, mdpc, Falcon Momot, Journeyman Geek
If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

up vote 0 down vote accepted

You installed the RPM Fusion release RPM for Fedora instead of the one for CentOS. I'm not entirely sure how you did that; it should reject attempts to do so.

To fix the problem, remove the release files you installed, and then download and install the correct ones.

yum --disablerepo=rpmfusion-* remove rpmfusion-{,non}free-release
share|improve this answer
    
I get the following: pastebin.com/vjp1R8vC –  user1472266 Feb 1 at 21:28
    
OK, so edit the command line and try again. –  Michael Hampton Feb 1 at 21:31
    
Really appreciate your answers, and sorry for my lack of knowledge on this subject. However, it's coming out with this now: pastebin.com/tWXM0FuM –  user1472266 Feb 1 at 21:35
    
Bah. OK, there. –  Michael Hampton Feb 1 at 21:37
    
Thats done the job and removed it! thanks! –  user1472266 Feb 1 at 21:45
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.