zypper in -d
下載軟件包但是不安裝,前提是這個軟件沒有安裝,如果已安裝最新版本雀监,軟件也不會下載。
軟件下載緩存路徑
/var/cache/zypp/packages/
這個路徑下面會根據(jù)不同的源有不同的目錄眨唬,可以使用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
顯示安裝軟件具體需要依賴安裝哪些其他軟件,如果依賴的軟件已經(jīng)安裝匾竿,就不會顯示出來瓦宜。