Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-16-2010, 04:03 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
YUM not reporting conflict when it should

Hi Guys,

I was hoping someone can help with an issue I have.

I am trying to test an rpm by doing a yum install. It should not install and report a dependency conflict as there is deliberately another package installed it should conflict with but it is installing over the existing package.

When I do this via an rpm -i it correctly does not install.

Detail below -

The SPEC file has the conflicts below

Conflicts: test_DEV = 1-0, test_UAT = 1-0, test_PRD = 1-0

If test_DEV is already installed for 1-0 and I try and install 1-1 via rpm is correctly conflicts -

rpm -qa | grep -i test


rpm -i test_DEV-1-1.noarch.rpm

error: Failed dependencies:
test_DEV = 1-0 conflicts with test_DEV-1-1.noarch

Yet when I install both via yum it allows me to install 1-1 over 1-0 which I don't want.

Any ideas?
Old 06-16-2010, 05:11 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,028

Rep: Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444
Welcome to LQ. .. ..

The command 'rpm -i' is not a "replacement" or "update" command.
'rpm -i' assumes that you will have both packages installed
at the same time.

'rpm -i' can also be used, if no other package by the same
name (or with the same files) is installed.
The idea with ' rpm -i ' : E.g. : You want two different
versions of a run time library at the same time.

'yum' will never use the 'rpm -i' command,
will always use 'rpm -Uvh' as default.
Which will update to the later version.

'rpm -Uvh' = the standard install command.
Please read 'man rpm'.

Preventing yum from updating this particular package :
Add a line in the spec file ...
Conflicts : <package-name>
... I'd guess, that will do the trick.
Alternatively, add a line to /etc/yum.conf :
... which will exclude all packages starting with the word test.
( Or use : exclude=test_DEV* )

Last edited by knudfl; 06-16-2010 at 05:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
problem with yum update : package conflict sd|| Linux - Newbie 1 03-16-2010 07:28 AM
yum update conflict hattori.hanzo Linux - Newbie 2 10-06-2008 09:04 PM
do yum rpm and hand compiles conflict? dfowensby Red Hat 4 12-05-2004 10:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration