удаление vcpkg
remove удаляет перечисленные пакеты и все пакеты, требующие их из установленного классического каталога. Дополнительные сведения о синтаксисе параметра см. в документации по команде установки.
Эта команда в настоящее время не поддерживается в режиме манифеста.
Параметры
Все команды vcpkg поддерживают набор общих параметров.
—recurse
Разрешить удаление пакетов, не указанных в командной строке.
По умолчанию vcpkg отказывается выполнить план удаления, который будет удалять пакеты, не перечисленные в командной строке.
—dry-run
Печать пакетов, которые нужно удалить, но не удаляйте их.
—outdated
Удалите все пакеты, которые не соответствуют доступным версиям портов.
Для каждого установленного пакета vcpkg сравнивает установленную строку версии с строкой версии текущего рецепта. Если эти версии отличаются, пакет будет выбран для удаления. Если —outdated он передается, в командной строке не должны быть перечислены пакеты.
Интеграция пакетного менеджера vcpkg в CLion Archived
Как известно, управление сторонними зависимостями для C++ проектов — это больно, непонятно и неудобно, особенно в OS Windows. В последнее время было предпринято несколько моментов изменить ситуацию, в том числе сама корпорация Microsoft создала и развивает пакетный менеджер vcpkg — он довольно удобен в использовании и быстро набирает популярность.
Тем не менее, даже наличие пакетного менеджера не решает все проблемы — пользователь должен узнать о его существовании, начать использовать его в конкретном проекте и установить нужные библиотеки.
В рамках данного проекта мы будем улучшать сложившуюся ситуацию для пользователей C и C++ — добавим удобную поддержку vcpkg в IDE CLion. Можно реализовать много прикольных и интересных фич, например:
- Автоматическое скачивание и использование vcpkg
- Удобный UI для просмотра, установки и удаления библиотек
- Автоматическая интеграция с CMake-проектами
- Предложение добавить библиотеку при обнаружении невалидной #include -директивы, и/или неудачного вызова команды find_package во время конфигурации CMake проекта
- Разработка более обобщенного компонента в CLion для простого подключения разных пакетных менеджеров для C/C++
Requirements
- Знание Java, Kotlin или C++ (знание одного из языков будет достаточным, разрабатывать придется на Java и Kotlin)
- Базовое понимание того, как устроена современная C++ разработка (зачем нужна билд-система и пакетный менеджер, какие есть компиляторы на разных платформах, какие плюсы и минусы у header-only библиотек и т. д.)
404 Not Found
You are browsing the documentation of vcpkg . The documentation page you are looking for was not found.
Documentation changes over time and pages are moved around. You can try to navigate to the index page of the project and use its navigation, or search for a similar page.
Try searching?
Are you the project owner?
Here are some tips to address 404 errors:
- Use your own custom 404 page: Read more »
- Create redirects when you move contents: Read more »
Будьте в курсе
Подпишитесь на нашу рассылку, чтобы еженедельно получать обновления блога.
Thank you!
You have successfully joined our subscriber list.
Ресурсы
- Руководство
- Команда
- Документация
- Отказ от рекламы
- Поддержка сайта
- Состояние сайта
How to remove vcpkg and all libraries installed with 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.
Best Solution
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
Related Solutions
C++ – Getting cURL to work with Visual Studios 2017
You’ve installed the x86 version of curl with vcpkg (That’s the x86 in vcpkg\packages\curl_x86\include ). You need to install the x64 version to match your project:
>vcpkg install curl:x64-windows
C++ – cmake cannot find libraries installed with vcpkg
- You need to install the packages beforehand (using vcpkg install ).
(Then you could specify the toolchain as a CMake option:
-DCMAKE_TOOLCHAIN_FILE=C:\path\to\vcpkg\scripts\buildsystems\vcpkg.cmake
but this won’t work if you already specify a toolchain, such as when cross-compiling.)
- «include» it, instead, to avoid this problem:
Add this line to the project CMakeLists.txt before find_package():
include(/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake)
