19

I am doing a system wide yum update on RHEL 5.5 and the IUS EPEL repository is throwing a missing dependency error:

php53-mcrypt-5.3.3-4.ius.el5.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-common = 5.3.3-4.ius.el5 is needed by package php53-mcrypt-   5.3.3-4.ius.el5.x86_64 (installed)
Error: Missing Dependency: php53-common = 5.3.3-4.ius.el5 is needed by package php53-mcrypt-5.3.3-4.ius.el5.x86_64 (installed)

Is there is a way to run YUM update against all the other repositories ignoring the IUS EPEL repo to skip this dependency issue?

Clarification

I am trying to install the updates from the Redhat Network only. I cannot find the repo name so I am unable to do something like sudo yum --disablerepo=* --enablerepo=rhel update as the version of yum I am using does not support multiple repositories listed after --disablerepo.

Update

My temporary workaround is to run sudo yum --exclude=php53* update. I am convinced that there is a better way. This better way includes fixing the actual problem, so I filed a bug with the IUS Community Project as well.

Update #2

Looks like I found the issue with the dependency. I still think there should be a viable workaround.

Thanks!

Robin
  • 371

4 Answers4

31

Try the disable repo switch:

--disablerepo=REPONAME

UPDATE

To find all repositories currently "known" (enabled and disabled):

yum repolist all

Then to find which repository is giving you grief for the above package, try:

yum list php53-mcrypt-5.3.3-4.ius.el5.x86_64 --showduplicates

This will then show which of your repositories provide the above package (you'll see "installed" on the list too, to show the locally installed packages).

Try the disable switch again once you know the repository using the disable repo switch.

yum update --disablerepo=[from above]

Failing the steps above to single-out the repository you want to omit, try having a look through /etc/yum.repos.d/, which is the RHEL default location for repository definitions. Once in this directory, locate all non-standard RHEL base and updates repository files and include enabled=0, e.g.,

[repo]
enabled=0

Hope this helps.

plasmid87
  • 2,118
1

The easiest way to do this is by commenting the lines with your unwanted repo in /etc/yum.repos.d/

Giacomo1968
  • 3,553
  • 29
  • 42
fromnaboo
  • 111
1

You can disable multiple repositories on the yum command line:

yum update --disablerepo=myrepo1 --disablerepo=myrepo2 --disablerepo=myrepo3

However, if you do that, you must explicitly enable the repo you want:

yum update --disablerepo=myrepo1 --disablerepo=myrepo2 \
           --disablerepo=myrepo3 --enablerepo=TheRepoIWant
Eddie C.
  • 549
  • 1
  • 3
  • 12
0

You can add enabled=0 to the repository configuration file to disable it.

Example of repository configuration file http://www.cyberciti.biz/tips/rhel5-fedora-core-add-new-yum-repository.html.

Giacomo1968
  • 3,553
  • 29
  • 42
NoNoNo
  • 1,999
  • 15
  • 21