Reputation: 485
I have installed vcpkg, a package manager for C++. Now after some time, I'd like to update it. How can I do that? Do I need to uninstall and reinstall?
Upvotes: 9
Views: 18487
Reputation: 485
The vcpkg community on Github provided an official answer on their FAQ. They suggest pulling the repo and running the bootstrap script.
Upvotes: 5
Reputation: 1
"git pull" "./bootstrap-vcpkg.bat"
This downloads current binary of .EXE - but doesn't change your installed packages. No need to delete / reinstall any packages.
You can then "vcpkg update/upgrade" for installed pkgs as you wish.
Upvotes: 0
Reputation: 834
Given the previous/sufficient answers, this might be a tad redundant, but I usually go in this order (on my Windows machine)
.\vcpkg --version
to check the version no. You can check the git to see whether there's a more recent version.git pull https://github.com/microsoft/vcpkg
. This runs git fetch to get files from the remote repository and runs git merge to merge the changes../bootstrap-vcpkg.bat
to update vcpkgUpvotes: 3
Reputation: 2028
The best way to update a vcpkg git clone is to do
git pull
<vcpkg_root>/installed/
directorybootstrap.bat
or bootstrap.sh
Note:
vcpkg upgrade/update
command but it is discouraged since it is not transactionalvcpkg integrate remove/install
Upvotes: 13