# CC7: Problem with yum: Hack required to make it update again

**URL:** <https://linux-community.web.cern.ch/t/cc7-problem-with-yum-hack-required-to-make-it-update-again/138>\
**Category:** Uncategorized\
**Created:** [May 5, 2021, 5:56pm UTC](https://linux-community.web.cern.ch/t/cc7-problem-with-yum-hack-required-to-make-it-update-again/138 "2021-05-05T17:56:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpthomas](https://linux-community.web.cern.ch/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@jpthomas](https://linux-community.web.cern.ch/u/jpthomas)\
**Post date:** [May 5, 2021, 5:56pm UTC](https://linux-community.web.cern.ch/t/cc7-problem-with-yum-hack-required-to-make-it-update-again/138/1 "2021-05-05T17:56:58Z")

</div>

## Just wondering if this is of use to some: On our CERN-CentOS7 machines, the ‘yum update’ today failed ie just exited with this last message:

## (…) Running transaction Warning: RPMDB altered outside of yum. Invalid version flag: or

## ‘yum’ could not do anything, no update or install of individual packages, it always failed like this, simply stopped.

Our kernel is:

# uname -r

## 3.10.0-1160.24.1.el7.x86\_64

## This hack was required:

## [community · Discussions · GitHub](https://github.community/t/linux-centos-error-msg-invalid-version-flag-or/122215)

Then ‘yum update’ works again, have used this to install ‘dnf’ which is as I think the new recommended package manager. Then things are ok again.  
Maybe this had something to do with a recent package update on CERN\_CC7, if so, it should be looked at. And could ‘dnf’ be part of the regular install ?  
Just saying.

---

<div class="post-metadata">

**Author:** ![ahich](https://linux-community.web.cern.ch/letter_avatar_proxy/v4/letter/a/e47c2d/32.png) [@ahich](https://linux-community.web.cern.ch/u/ahich)\
**Post date:** [December 10, 2022, 5:16am UTC](https://linux-community.web.cern.ch/t/cc7-problem-with-yum-hack-required-to-make-it-update-again/138/2 "2022-12-10T05:16:59Z")

</div>

Hi,

I am coming across exactly the same problem. Unfortunately, the link you are pointing to about the hack is no more active. Could you please copy/paste or recall what the solution was about?

Thanks,  
A.H.
