1

I have some chef recipes referencing the package php53u. It seems that at the time the recipes were written, the package was available in ius repo, but now it seems that package php installs version 5.3.3 and there is no php53u package at all. Can I force yum to use old version of repository so that the package can be found?

2 Answers 2

1

Can I force yum to use old version of repository so that the package can be found?

No you just kind of have to go based on what the repo has available. If they got rid of that package then that's all she wrote. You may try using google to find an IUS mirror repo that is still available but hasn't been synced in a while. That's kind of laborious but it may work.

but now it seems that package php installs version 5.3.3 and there is no php53u package at all.

I don't have much experience with IUS so I don't know what's different about this build than the standard RHEL build, but there's a php55u package currently available for EL6 and a php54 for EL5. Are either of those acceptable for your purposes?

1
  • Nah my main purpose was not to edit chef repos, guess I'll have to do it
    – Fluffy
    Nov 12, 2014 at 15:17
0

You have to put back the old repository in your /etc/yum.repos.d/ directory, or if present but disable , you can enable it by doing a yum --enablerepo=nameoftherepo

If you want to downgrade a package you can use the command yum downgrade packageName

I'm not sure if this helps you

Cheers.

2
  • fwiw if they're saying they can't find a package in the repo at all, yum downgrade isn't going to be able to find a version to downgrade to. php53 and php are considered different packages for instance.
    – Bratchley
    Nov 12, 2014 at 15:08
  • yes i have misunderstood what Fluffy was saying, but thanks for the reminder. Nov 12, 2014 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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