ksh update breaks installed RPM, yum fails

Issues related to applications and software problems
Post Reply
addw
Posts: 35
Joined: 2005/10/23 14:11:29
Location: England
Contact:

ksh update breaks installed RPM, yum fails

Post by addw » 2021/12/07 15:01:07

yum update has been failing recently.

A package of mine (installed a year ago) needs /usr/bin/ksh

For some reason the recent update to ksh breaks, I cannot see why.

The last few lines of yum update are:

Code: Select all

--> Processing Dependency: /usr/bin/ksh for package: LetsEncryptManage-1.17-5.5.noarch
--> Finished Dependency Resolution
Error: Package: LetsEncryptManage-1.17-5.5.noarch (@phcl)
           Requires: /usr/bin/ksh
           Removing: ksh-20120801-142.el7.x86_64 (@base)
               Not found
           Updated By: ksh-20120801-143.el7_9.x86_64 (updates)
               Not found
My package can be downloaded from here:
https://software.phcomp.co.uk/mrepo/cen ... noarch.rpm
It requires /usr/bin/ksh which is there (/etc/alternatives/ksh -> /bin/ksh93)

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ksh update breaks installed RPM, yum fails

Post by TrevorH » 2021/12/07 17:01:02

The problem is that the package 'ksh' doesn't supply /usr/bin/ksh, it supplies /bin/ksh. There happens to be a symlink from /usr/bin to /bin so it does exist but as far as rpm is concerned /bin/ksh and /usr/bin/ksh are different things and you have one and not the other. Rebuild your package to depend on /bin/ksh and all will be fixed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply