RHEL 8 시스템을 사용하고 있으며 sed
4.5가 기본적으로 설치되어 있습니다.
[root@192 ~]# rpm -qf `which sed`
sed-4.5-2.el8.x86_64
[root@192 ~]#
--debug
일부 명령을 디버그하기 위해 해당 옵션을 사용하고 싶었기 때문에 sed
를 업그레이드해야 했습니다 sed
. 를 제거하려고 시도했을 때 sed
다른 많은 패키지가 이에 의존한다는 것을 발견했습니다.
[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 ~]#
이 경우 올바른 업그레이드 방법은 무엇입니까 sed
? 또한 새 버전을 직접 설치해 보았습니다.
[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 ~]#
그러나 보시다시피 일부 실패한 종속성도 있습니다. 누락된 종속성을 설치하고 다시 설치해야 합니까?
고쳐 쓰다
jsbillings가 의견에서 지적했듯이 잘못된 패키지 스키마를 사용하고 있었습니다. 다음은 x86_64 패키지 설치의 출력입니다.
[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 ~]#
답변1
RHEL에는 Fedora 패키지를 설치할 수 없습니다.
sed
최신 버전의 디버깅 기능만 필요하므로 컨테이너를 업그레이드하는 대신 컨테이너를 실행하는 것이 좋습니다 .
sudo yum install podman
podman run -it --rm fedora:35
그러면 최신 버전이 제공됩니다 sed
.