I'm on a RHEL 8 system and by default sed
4.5 was installed.
[root@192 ~]# rpm -qf `which sed`
sed-4.5-2.el8.x86_64
[root@192 ~]#
Since I want to use the --debug
option to debug some sed
commands, I have to upgrade sed
. When I try to uninstall sed
, I found a lot of other packages depend on it:
[root@192 ~]# rpm -e sed
error: Failed dependencies:
/bin/sed is needed by (installed) os-prober-1.74-6.el8.x86_64
sed is needed by (installed) krb5-libs-1.18.2-5.el8.x86_64
sed is needed by (installed) ca-certificates-2020.2.41-80.0.el8_2.noarch
sed is needed by (installed) dracut-049-95.git20200804.el8.x86_64
sed is needed by (installed) policycoreutils-2.9-9.el8.x86_64
sed is needed by (installed) sane-backends-1.0.27-19.el8_2.1.x86_64
sed is needed by (installed) authselect-libs-1.2.1-2.el8.x86_64
sed is needed by (installed) open-vm-tools-11.1.0-2.el8.x86_64
sed is needed by (installed) dhcp-client-12:4.3.6-41.el8.x86_64
sed is needed by (installed) cups-filters-1.20.0-20.el8.x86_64
sed is needed by (installed) nfs-utils-1:2.3.3-35.el8.x86_64
sed is needed by (installed) authselect-compat-1.2.1-2.el8.x86_64
sed is needed by (installed) autofs-1:5.1.4-43.el8.x86_64
/usr/bin/sed is needed by (installed) groff-base-1.22.3-18.el8.x86_64
[root@192 ~]#
In this case, what's the proper way to upgrade sed
? I also tried to install a new version directly:
[root@192 ~]# rpm -ivh https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/35/Everything/aarch64/os/Packages/s/sed-4.8-8.fc35.aarch64.rpm
Retrieving https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/35/Everything/aarch64/os/Packages/s/sed-4.8-8.fc35.aarch64.rpm
warning: /var/tmp/rpm-tmp.VumGnB: Header V4 RSA/SHA256 Signature, key ID 9867c58f: NOKEY
error: Failed dependencies:
glibc >= 2.33.9000-43.fc35 is needed by sed-4.8-8.fc35.aarch64
ld-linux-aarch64.so.1()(64bit) is needed by sed-4.8-8.fc35.aarch64
ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) is needed by sed-4.8-8.fc35.aarch64
libc.so.6(GLIBC_2.33)(64bit) is needed by sed-4.8-8.fc35.aarch64
libc.so.6(GLIBC_2.34)(64bit) is needed by sed-4.8-8.fc35.aarch64
libselinux.so.1(LIBSELINUX_1.0)(64bit) is needed by sed-4.8-8.fc35.aarch64
[root@192 ~]#
But, as you can see, it also has some failed dependencies. Should I install these missing dependencies and try to install again?
Update
As jsbillings pointed out in the comment, I was using the wrong architecture of package. Below is the output of installing a x86_64 package.
[root@192 ~]# rpm -ivh https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/Packages/s/sed-4.8-8.fc35.x86_64.rpm
Retrieving https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/Packages/s/sed-4.8-8.fc35.x86_64.rpm
warning: /var/tmp/rpm-tmp.FT7OI2: Header V4 RSA/SHA256 Signature, key ID 9867c58f: NOKEY
error: Failed dependencies:
glibc >= 2.33.9000-43.fc35 is needed by sed-4.8-8.fc35.x86_64
libc.so.6(GLIBC_2.33)(64bit) is needed by sed-4.8-8.fc35.x86_64
libc.so.6(GLIBC_2.34)(64bit) is needed by sed-4.8-8.fc35.x86_64
libselinux.so.1(LIBSELINUX_1.0)(64bit) is needed by sed-4.8-8.fc35.x86_64
[root@192 ~]#
stow
orcheckinstall
are packaged for RHEL but if they are, you should install the package.