How to remove vcpkg and all libraries installed with vcpkg

有些话、适合烂在心里 提交于 2021-02-07 12:01:51

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/57296864/how-to-remove-vcpkg-and-all-libraries-installed-with-vcpkg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!