共用方式為


vcpkg upgrade

概要

vcpkg upgrade [options]

描述

拿掉並重新安裝 具有不同目前可用版本的傳統模式 套件。

警告

此命令不會儲存先前的安裝狀態。 如果在建置取代套件時發生錯誤,將不會還原先前的套件集。

若要進行健全的版本管理,請使用 指令清單模式

根據預設, upgrade 列印將修改的項目計劃。 傳遞 --no-dry-run 以執行該計劃。

範例

$ vcpkg upgrade
The following packages will be rebuilt:
  * corrade[core,interconnect,pluginmanager,testsuite,utility]:x64-windows -> 2020.06#5
  * magnum[al-info,anyaudioimporter,anyimageconverter,anyimageimporter,anysceneconverter,anysceneimporter,anyshaderconverter,audio,cglcontext,core,debugtools,distancefieldconverter,eglcontext,fontconverter,gl,gl-info,glfwapplication,glxcontext,imageconverter,magnumfont,magnumfontconverter,meshtools,objimporter,opengltester,primitives,sceneconverter,scenegraph,sdl2application,shaderconverter,shaders,shadertools,text,texturetools,tgaimageconverter,tgaimporter,trade,wglcontext,windowlesscglapplication,windowlesseglapplication,windowlessglxapplication,windowlesswglapplication]:x64-windows -> 2020.06#12
  * openal-soft[core]:x64-windows -> 1.23.0
  * ragel[core]:x64-windows -> 6.10#5
  * sdl2[base,core]:x64-windows -> 2.26.4
Additional packages (*) will be modified to complete this operation.
If you are sure you want to rebuild the above packages, run this command with the --no-dry-run option.

選項。

所有 vcpkg 命令都支援一組 常見的選項

--no-dry-run

拿掉過期的套件,並在使用者公用 vcpkg 登錄的本機複本中列出的版本重新安裝這些套件。

--no-keep-going

在第一次失敗時停止。

根據預設,在套件安裝失敗時,vcpkg 會繼續嘗試安裝其他不相關的套件。

--allow-unsupported

允許執行升級至不支援的套件。