Rhel
來自 cdrom 的 localinstall 找不到依賴項 - RHEL 6.2
我有
.iso
RHEL 6.2,裡面有基本的包。當我使用安裝 rpmyum install
或yum localinstall
由於它無法找到依賴項而無法安裝時,儘管可以在封包件夾中找到它。[root@DEVSI Packages]# yum localinstall libstdc++-* Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Setting up Local Package Process Examining libstdc++-4.4.6-3.el6.i686.rpm: libstdc++-4.4.6-3.el6.i686 Marking libstdc++-4.4.6-3.el6.i686.rpm to be installed Examining libstdc++-4.4.6-3.el6.x86_64.rpm: libstdc++-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64.rpm: does not update installed package. Examining libstdc++-devel-4.4.6-3.el6.i686.rpm: libstdc++-devel-4.4.6-3.el6.i68 Marking libstdc++-devel-4.4.6-3.el6.i686.rpm to be installed Examining libstdc++-devel-4.4.6-3.el6.x86_64.rpm: libstdc++-devel-4.4.6-3.el6.x6_64 libstdc++-devel-4.4.6-3.el6.x86_64.rpm: does not update installed package. Examining libstdc++-docs-4.4.6-3.el6.x86_64.rpm: libstdc++-docs-4.4.6-3.el6.x8664 Marking libstdc++-docs-4.4.6-3.el6.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package libstdc++.i686 0:4.4.6-3.el6 will be installed --> Processing Dependency: ld-linux.so.2 for package: libstdc++-4.4.6-3.el6.i68 --> Processing Dependency: ld-linux.so.2(GLIBC_2.3) for package: libstdc++-4.4.-3.el6.i686 --> Processing Dependency: libc.so.6 for package: libstdc++-4.4.6-3.el6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.0) for package: libstdc++-4.4.6-3.l6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.1) for package: libstdc++-4.4.6-3.l6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: libstdc++-4.4.6-.el6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.2) for package: libstdc++-4.4.6-3.l6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.3) for package: libstdc++-4.4.6-3.l6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.3.2) for package: libstdc++-4.4.6-.el6.i686 --> Processing Dependency: libc.so.6(GLIBC_2.4) for package: libstdc++-4.4.6-3.l6.i686 --> Processing Dependency: libm.so.6 for package: libstdc++-4.4.6-3.el6.i686 --> Processing Dependency: libm.so.6(GLIBC_2.0) for package: libstdc++-4.4.6-3.l6.i686 ---> Package libstdc++-devel.i686 0:4.4.6-3.el6 will be installed ---> Package libstdc++-docs.x86_64 0:4.4.6-3.el6 will be installed --> Finished Dependency Resolution Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.0) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.1) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: ld-linux.so.2(GLIBC_2.3) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.3.2) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libm.so.6 Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libm.so.6(GLIBC_2.0) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.4) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6 Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.3) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.2) Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: ld-linux.so.2 Error: Package: libstdc++-4.4.6-3.el6.i686 (/libstdc++-4.4.6-3.el6.i686) Requires: libc.so.6(GLIBC_2.1.3) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
謝謝。
看起來您需要配置儲存庫,以便 Yum 知道在哪裡可以找到這些包。涉及幾個步驟,請耐心等待。
為iso創建一個新的掛載點並將其掛載在那裡
注意:正如您在標題中所說,這是在 CDROM 上,下面 mount 命令中的路徑將是 CDROM 的路徑及其上的 iso。
mkdir /isomount mount -o loop /path/to/.iso /isomount
獲取身份證
這對下一步很重要。
head -n1 isomount/.discinfo
創建一個新的 .repo 文件
創建一個新文件,
/etc/yum.repos.d/new.repo
並添加以下內容(mediaid 是您在上一步中檢索到的 ID):[repository] mediaid=<media_id> name=Disk Repository baseurl=file:///isomount/path/to/repo enabled=1 gpgcheck=0
您可能需要使用
gpgcheck=1
withgpgkey=
但不事先嘗試。最後
更新 Yum 以使更改生效。
yum update