sky_cheng

导航

 

一、查看源 

[root@hlcc fs_rpms]# yum repolist
仓库标识                                            仓库名称
hl95                                                hl95 yum
ks10-adv-os                                         Kylin Linux Advanced Server 10 - Os
ks10-adv-updates                                    Kylin Linux Advanced Server 10 - Updates

二、查看指定包所有依赖

[root@hlcc fs_rpms]# yum deplist opensips
上次元数据过期检查:2:53:55 前,执行于 2023年04月21日 星期五 08时41分01秒。
package: opensips-3.2.7-2.2.20220405.B.XC.patch1.ky10.x86_64
  dependency: libc.so.6(GLIBC_2.22)(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libcrypto.so.1.1()(64bit)
   provider: openssl-libs-1:1.1.1f-4.p10.ky10.x86_64
  dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
   provider: openssl-libs-1:1.1.1f-4.p10.ky10.x86_64
  dependency: libcrypto.so.1.1(OPENSSL_1_1_1)(64bit)
   provider: openssl-libs-1:1.1.1f-4.p10.ky10.x86_64
  dependency: libdl.so.2()(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libdl.so.2(GLIBC_2.2.5)(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libhiredis_vip.so.1.0()(64bit)
   provider: hiredis-vip-0.3.0-1.ky10.x86_64
  dependency: libm.so.6()(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libmariadb.so.3()(64bit)
   provider: mariadb-connector-c-3.0.6-8.p01.ky10.x86_64
  dependency: libmariadb.so.3(libmysqlclient_18)(64bit)
   provider: mariadb-connector-c-3.0.6-8.p01.ky10.x86_64
  dependency: libmicrohttpd.so.12()(64bit)
   provider: libmicrohttpd-1:0.9.59-8.ky10.x86_64
   provider: libmicrohttpd-1:0.9.59-8.ky10.x86_64
  dependency: libncurses.so.6()(64bit)
   provider: ncurses-libs-6.2-3.ky10.x86_64
  dependency: libpthread.so.0()(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libpthread.so.0(GLIBC_2.2.5)(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libresolv.so.2()(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libresolv.so.2(GLIBC_2.2.5)(64bit)
   provider: glibc-2.28-49.p08.ky10.x86_64
  dependency: libssl.so.1.1()(64bit)
   provider: openssl-libs-1:1.1.1f-4.p10.ky10.x86_64
  dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
   provider: openssl-libs-1:1.1.1f-4.p10.ky10.x86_64
  dependency: libtinfo.so.6()(64bit)
   provider: ncurses-libs-6.2-3.ky10.x86_64
  dependency: libz.so.1()(64bit)
   provider: zlib-1.2.11-20.ky10.x86_64
  dependency: rtld(GNU_HASH)
   provider: glibc-2.28-49.p08.ky10.x86_64

三、下载指定包所有的依赖

[root@hlcc ~]# rm -rf op_rpms/
[root@hlcc ~]# mkdir /root/op_rpms
[root@hlcc ~]# cd /root/op_rpms/
[root@hlcc op_rpms]# repotrack opensips

四、下载指定包当前缺少的依赖

[root@hlcc op_rpms]# yumdownloader --resolve --destdir=/root/op_rpms/ opensips

 五、指定源安装

[root@hlcc op_rpms]# yum install --enablerepo=hl95 opensips

 

posted on 2023-04-21 14:37  sky_cheng  阅读(44)  评论(0编辑  收藏  举报