My Oracle Support Banner

Oracle Linux: Yum Command not Working with "RPMSENSE_GREATER" Error (Doc ID 2676529.1)

Last updated on JUNE 08, 2020

Applies to:

Linux OS - Version Oracle Linux 7.3 to Oracle Linux 7.8 with Unbreakable Enterprise Kernel [4.14.35] [Release OL7U3 to OL7U8]
Information in this document applies to any platform.

Symptoms

When trying to execute any yum command, server is getting this error.

[root@hostname ~]# yum clean all
Traceback (most recent call last):
File "/bin/yum", line 4, in <module>
import yum
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 62, in <module>
import rpmsack
File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 38, in <module>
import yum.depsolve
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 57, in <module>
flags = {"GT": rpm.RPMSENSE_GREATER,
AttributeError: 'module' object has no attribute 'RPMSENSE_GREATER'
[root@hostname ~]#

Changes

 No Changes

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.