[CentOS] YUM problem

Fri Dec 18 09:35:39 UTC 2020
Gestió Servidors <sysadmin.caos at uab.cat>

Hi,

I'm trying to find a YUM package. My system runs a CentOS-7.2.1511 (yes, it's a old version, but some software is "stable" with this CentOS version). Now, I'm looking for a package with YUM. When a run "yum provides */system-config-lvm", I get this error:
[root at mysystem ~]# yum provides */system-config-lvm
Complementos cargados:fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* epel: mirror.uv.es
* extras: ftp.csuc.cat<ftp://ftp.csuc.cat>
* updates: ftp.csuc.cat<ftp://ftp.csuc.cat>
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 184, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 584, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1557, in doCommand
    return base.provides(extcmds)
  File "/usr/share/yum-cli/cli.py", line 1619, in provides
    callback_has_matchfor=True)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3538, in searchPackageProvides
    tagdata = getattr(po, tag)
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 668, in <lambda>
    filelist = property(fget=lambda self: self.returnFileEntries(ftype='file'))
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1504, in returnFileEntries
    self._loadFiles()
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1478, in _loadFiles
    files = self.hdr['filenames']
_rpm.error: invalid header data

I have run "yum clean metadata" and "yum clean all", but error message still appears.

What can I do?

Thanks.