Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove vcpkg and all libraries installed with vcpkg

Tags:

vcpkg

How does one completely remove vcpkg and all installations/system changes made by it?

I recall seeing some FAQ about vcpkg where it said that you could just delete the vcpkg folder. However, I've been trying to find that same FAQ for over an hour now, to no avail. Also "just delete the folder" being the solution seems implausible to me, since I would assume vcpkg changes some environment variables or other settings, as well as the integration with Visual Studio that I was trying to use. Online search on this topic only yielded people discussing how to remove multiple installed libraries at once, with no clear solution even to that problem (I would be interested in this as well). The vcpkg website itself seems to offer no answers to this question.

edit: I found the page saying "just delete the folder" at docs.microsoft.

like image 772
Adomas Baliuka Avatar asked Jul 31 '19 18:07

Adomas Baliuka


1 Answers

The documentation page https://docs.microsoft.com/en-us/cpp/build/vcpkg offers the instruction how to uninstall:

Uninstall vcpkg

Just delete the directory.

It could also mention that removing the vcpkg directory completely actually uninstalls all the installed libraries (all ports), because the vcpkg directory is the sole place where vcpkg.exe deploys any files.

Additionally, if you did run vcpkg integrate install, then you may also run vcpkg integrate remove to remove the user-wide (global) integration. vcpkg integrate remove Remove user-wide integration

like image 122
mloskot Avatar answered Oct 11 '22 02:10

mloskot