![如何正确地卸载和删除某些东西以及从源代码构建和安装?](https://linux22.com/image/1149423/%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A1%AE%E5%9C%B0%E5%8D%B8%E8%BD%BD%E5%92%8C%E5%88%A0%E9%99%A4%E6%9F%90%E4%BA%9B%E4%B8%9C%E8%A5%BF%E4%BB%A5%E5%8F%8A%E4%BB%8E%E6%BA%90%E4%BB%A3%E7%A0%81%E6%9E%84%E5%BB%BA%E5%92%8C%E5%AE%89%E8%A3%85%EF%BC%9F.png)
我从源代码构建了 openCV3 并将其安装在我的机器上。我现在想删除它。有人能告诉我正确的这样做的方法是什么?
~/Downloads/opencv-3.2.0$ ls
3rdparty apps build cmake CMakeLists.txt CONTRIBUTING.md data doc include LICENSE modules platforms README.md samples
~/Downloads/opencv-3.2.0/build$ ls
3rdparty CMakeVars.txt doc opencv2 share
apps CPackConfig.cmake include OpenCVConfig.cmake test-reports
bin CPackSourceConfig.cmake install_manifest.txt OpenCVConfig-version.cmake text_config.hpp
CMakeCache.txt CTestTestfile.cmake junk opencv_lapack.h unix-install
CMakeFiles custom_hal.hpp lib OpenCVModules.cmake version_string.tmp
cmake_install.cmake cvconfig.h Makefile opencv_tests_config.hpp
cmake_uninstall.cmake data modules samples
谢谢!
答案1
您可以xargs rm < install_manifest.txt
从构建文件夹运行以删除由 安装的所有文件make install
。然后删除您的构建和源目录。