如何正确地卸载和删除某些东西以及从源代码构建和安装?

如何正确地卸载和删除某些东西以及从源代码构建和安装?

我从源代码构建了 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。然后删除您的构建和源目录。

相关内容