Force Package Install Using Yum?

Home » CentOS » Force Package Install Using Yum?
CentOS 1 Comment

Hi Everyone,

I have a CentOS 7 box that’s refusing a rpm update. I suspect it has something to do with SCL enabled. The ‘yum update’ output is shown below.

I need to force this package to install. I don’t give a damn about the log files. I need that server patched since it is forward facing. Taking the server offline is not an option.

How do I force the package installation?

Thanks in advance.

===================
Running transaction
Updating : httpd24-httpd-2.4.34-18.el7.x86_64 1/2
Error unpacking rpm package httpd24-httpd-2.4.34-18.el7.x86_64
error: unpacking of archive failed on file
/opt/rh/httpd24/root/etc/httpd/logs: cpio: rename httpd24-httpd-2.4.34-15.el7.x86_64 was supposed to be removed but is not!
Verifying : httpd24-httpd-2.4.34-15.el7.x86_64 1/2
Verifying : httpd24-httpd-2.4.34-18.el7.x86_64 2/2
Failed:
httpd24-httpd.x86_64 0:2.4.34-15.el7 httpd24-httpd.x86_64 0:2.4.34-18.el7

===================
My attempt to force it from https://www.redhat.com/archives/fedora-list/2007-October/msg02953.html:

# yum clean

# yum install –downloadonly httpd24-httpd.x86_64 0:2.4.34-15.el7.rpm

# yum localinstall
/var/cache/yum/x86_64/7/CentOS-sclo-rh/packages/httpd24-httpd-2.4.34-18.el7.x86_64.rpm Loaded plugins: fastestmirror Examining /var/cache/yum/x86_64/7/CentOS-sclo-rh/packages/httpd24-httpd-2.4.34-18.el7.x86_64.rpm:
httpd24-httpd-2.4.34-18.el7.x86_64
Marking /var/cache/yum/x86_64/7/CentOS-sclo-rh/packages/httpd24-httpd-2.4.34-18.el7.x86_64.rpm as an update to httpd24-httpd-2.4.34-15.el7.x86_64
Resolving Dependencies
–> Running transaction check
—> Package httpd24-httpd.x86_64 0:2.4.34-15.el7 will be updated
—> Package httpd24-httpd.x86_64 0:2.4.34-18.el7 will be an update
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================== Package Arch Version Repository Size
===============================================================================Updating:
httpd24-httpd x86_64 2.4.34-18.el7 /httpd24-httpd-2.4.34-18.el7.x86_64 4.3 M

Transaction Summary
===============================================================================Upgrade 1 Package

Total size: 4.3 M
Is this ok [y/d/N]: Y
Downloading packages:
Running transaction check Running transaction test Transaction test succeeded Running transaction
Updating : httpd24-httpd-2.4.34-18.el7.x86_64 1/2
Error unpacking rpm package httpd24-httpd-2.4.34-18.el7.x86_64
error: unpacking of archive failed on file
/opt/rh/httpd24/root/etc/httpd/logs: cpio: rename httpd24-httpd-2.4.34-15.el7.x86_64 was supposed to be removed but is not!
Verifying : httpd24-httpd-2.4.34-15.el7.x86_64 1/2
Verifying : httpd24-httpd-2.4.34-18.el7.x86_64 2/2

Failed:
httpd24-httpd.x86_64 0:2.4.34-15.el7 httpd24-httpd.x86_64 0:2.4.34-18.el7

Complete!

One thought on - Force Package Install Using Yum?

  • The rpm is complaining that cpio can’t extract this path. Is it supposed to be a link but now it’s a directory?


    Jonathan Billings