Package-Management

包管理器更新與升級?

  • February 9, 2018

sudo zypper update

The following package updates will NOT be installed:
 amarok bluedevil choqok cln digikam digikam-lang GeoIP gstreamer-0_10 gstreamer-0_10-plugin-gnomevfs gstreamer-0_10-plugin-hal 
 gstreamer-0_10-plugins-base gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-lang k3b kaffeine kipi-plugins kipi-plugins-acquireimage 
 ksshaskpass ktorrent ktorrent-lang liba52-0 libavcodec52 libavformat52 libavutil50 libbluedevil1 libcares2 libGeoIP1 libgstapp-0_10-0 
 libgstinterfaces-0_10-0 libgstreamer-0_10-0 libgstreamer-0_10-0-32bit libidn libidn-32bit libktorrent3 libktorrent3-lang liblash1 liblzma5 libnetcdf4 
 libshout3 libssh2-1 libswscale0 libtag-extras1 libupnp6 libva1 libvlc5 libwavpack1 libx264-115 libxine1 libxine1-gnome-vfs libxine1-pulse linphone 
     mjpegtools netcdf NetworkManager-kde4-libs NetworkManager-openvpn-kde4 NetworkManager-pptp-kde4 NetworkManager-vpnc-kde4 openmpi oxygen-gtk 
 python-cairo python-gobject python-gobject-cairo python-gtk python-numpy python-qt4 python-simplejson python-sip shared-desktop-ontologies skanlite 
 sox taglib xz 

The following packages are going to be upgraded:
 dbus-1 dbus-1-32bit dbus-1-devel google-chrome-stable gstreamer-0_10-buzztard libgstapp-0_10-0-32bit libvlc5 libvlccore4 libx264-116 libxine1-codecs 
 python-virtualbox virtualbox virtualbox-devel virtualbox-host-kmp-default virtualbox-qt vlc vlc-aout-pulse vlc-gnome vlc-noX vlc-qt 

首先,為什麼 zypper 告訴我我需要的更新,然後說它們不會安裝?另外,下面說...packages will be UPGRADED. 這些術語之間有區別嗎?

我問是因為 zypper 接受updateupgrade標誌。

我對Zypper不熟悉,所以對這個答案持保留態度。我熟悉 APT,Zypper 從中汲取了一些靈感;我可能錯過了兩者之間的重要區別。

據我所知,zypper update嘗試引入每個軟體包的最新版本。但它以相對溫和的方式做到這一點:僅考慮安裝來自同一儲存庫的已安裝軟體包的更新版本。zypper update不安裝新包、刪除現有包或安裝來自不同儲存庫的新包版本。

zypper dist-upgrade更具侵略性。它試圖使您的系統與儲存庫提供的內容保持同步:在 之後zypper dist-upgrade,您應該擁有與從儲存庫從頭開始安裝一樣的軟體包版本,就像現在一樣。

引用自:https://unix.stackexchange.com/questions/18549