美文网首页
zypper下载软件

zypper下载软件

作者: CitizenA_ | 来源:发表于2020-03-10 10:06 被阅读0次

    zypper in -d
    下载软件包但是不安装,前提是这个软件没有安装,如果已安装最新版本,软件也不会下载。
    软件下载缓存路径
    /var/cache/zypp/packages/
    这个路径下面会根据不同的源有不同的目录,可以使用find命令查找软件具体位置。

    linux:~ # zypper in -d openssl
    Loading repository data...
    Warning: Repository 'openSUSE-42.3-Update-Non-Oss' appears to be outdated. Consider using a different mirror or server.
    Warning: Repository 'openSUSE-42.3-Update-Ossz' appears to be outdated. Consider using a different mirror or server.
    Reading installed packages...
    Resolving package dependencies...
    
    The following 2 NEW packages are going to be installed:
      libopenssl1_1 openssl-1_1
    
    The following package is going to be upgraded:
      openssl
    
    The following package is going to change architecture:
      openssl  x86_64 -> noarch
    
    
    The following 3 packages are not supported by their vendor:
      libopenssl1_1 openssl openssl-1_1
    
    1 package to upgrade, 2 new, 1 to change arch.
    Overall download size: 2.6 MiB. Already cached: 0 B. Download only.
    Continue? [y/n/? shows all options] (y):y
    ......
    
    linux:/var/cache/zypp/packages # find -name "libopenssl1_1*"
    ./openSUSE-Leap-15.0-Oss/x86_64/libopenssl1_1-1.1.0h-lp150.2.1.x86_64.rpm
    

    zypper in -D
    显示安装软件具体需要依赖安装哪些其他软件,如果依赖的软件已经安装,就不会显示出来。

    相关文章

      网友评论

          本文标题:zypper下载软件

          本文链接:https://www.haomeiwen.com/subject/dxhtchtx.html