Skip to content

Instantly share code, notes, and snippets.

@Shaun289
Last active November 20, 2024 21:47
Show Gist options
  • Save Shaun289/85010e79a0012510a289b55e88a7e3d1 to your computer and use it in GitHub Desktop.
Save Shaun289/85010e79a0012510a289b55e88a7e3d1 to your computer and use it in GitHub Desktop.
Remove the installed googletest
# I compiled and installed googletest-release-1.12.1 in my macos.
# I want to remove the installed files clearly.
# find install_manifest.txt
googletest-release-1.12.1 % ls
BUILD.bazel CMakeLists.txt CTestTestfile.cmake README.md ci googlemock lib
CMakeCache.txt CONTRIBUTING.md LICENSE WORKSPACE cmake_install.cmake googletest
CMakeFiles CONTRIBUTORS Makefile bin docs install_manifest.txt
# remove it
# Reference : https://gist.github.com/Shaun289/a567f6732cb6e06cc53f26ce85357b65
% cat install_manifest.txt| xargs -I {} sudo rm -v {}
Password:
/usr/local/include/gmock/gmock-matchers.h
/usr/local/include/gmock/gmock-more-actions.h
/usr/local/include/gmock/internal/gmock-port.h
/usr/local/include/gmock/internal/gmock-internal-utils.h
/usr/local/include/gmock/internal/gmock-pp.h
/usr/local/include/gmock/internal/custom/gmock-port.h
/usr/local/include/gmock/internal/custom/gmock-matchers.h
/usr/local/include/gmock/internal/custom/gmock-generated-actions.h
/usr/local/include/gmock/internal/custom/README.md
/usr/local/include/gmock/gmock-function-mocker.h
/usr/local/include/gmock/gmock-more-matchers.h
/usr/local/include/gmock/gmock-cardinalities.h
/usr/local/include/gmock/gmock-spec-builders.h
/usr/local/include/gmock/gmock-nice-strict.h
/usr/local/include/gmock/gmock.h
/usr/local/include/gmock/gmock-actions.h
/usr/local/lib/libgmock.a
/usr/local/lib/libgmock_main.a
/usr/local/lib/pkgconfig/gmock.pc
/usr/local/lib/pkgconfig/gmock_main.pc
/usr/local/lib/cmake/GTest/GTestTargets.cmake
/usr/local/lib/cmake/GTest/GTestTargets-noconfig.cmake
/usr/local/lib/cmake/GTest/GTestConfigVersion.cmake
/usr/local/lib/cmake/GTest/GTestConfig.cmake
/usr/local/include/gtest/gtest-matchers.h
/usr/local/include/gtest/gtest-death-test.h
/usr/local/include/gtest/gtest-spi.h
/usr/local/include/gtest/gtest-assertion-result.h
/usr/local/include/gtest/internal/gtest-string.h
/usr/local/include/gtest/internal/gtest-death-test-internal.h
/usr/local/include/gtest/internal/gtest-port.h
/usr/local/include/gtest/internal/gtest-port-arch.h
/usr/local/include/gtest/internal/gtest-internal.h
/usr/local/include/gtest/internal/gtest-param-util.h
/usr/local/include/gtest/internal/gtest-type-util.h
/usr/local/include/gtest/internal/gtest-filepath.h
/usr/local/include/gtest/internal/custom/gtest-port.h
/usr/local/include/gtest/internal/custom/README.md
/usr/local/include/gtest/internal/custom/gtest.h
/usr/local/include/gtest/internal/custom/gtest-printers.h
/usr/local/include/gtest/gtest-message.h
/usr/local/include/gtest/gtest-param-test.h
/usr/local/include/gtest/gtest-typed-test.h
/usr/local/include/gtest/gtest_pred_impl.h
/usr/local/include/gtest/gtest_prod.h
/usr/local/include/gtest/gtest-test-part.h
/usr/local/include/gtest/gtest.h
/usr/local/include/gtest/gtest-printers.h
/usr/local/lib/libgtest.a
/usr/local/lib/libgtest_main.a
/usr/local/lib/pkgconfig/gtest.pc
/usr/local/lib/pkgconfig/gtest_main.pc
# Is it really removed?
# Sure!
% cat install_manifest.txt| xargs -I {} ls -al {}
ls: /usr/local/include/gmock/gmock-matchers.h: No such file or directory
ls: /usr/local/include/gmock/gmock-more-actions.h: No such file or directory
ls: /usr/local/include/gmock/internal/gmock-port.h: No such file or directory
ls: /usr/local/include/gmock/internal/gmock-internal-utils.h: No such file or directory
ls: /usr/local/include/gmock/internal/gmock-pp.h: No such file or directory
ls: /usr/local/include/gmock/internal/custom/gmock-port.h: No such file or directory
ls: /usr/local/include/gmock/internal/custom/gmock-matchers.h: No such file or directory
ls: /usr/local/include/gmock/internal/custom/gmock-generated-actions.h: No such file or directory
ls: /usr/local/include/gmock/internal/custom/README.md: No such file or directory
ls: /usr/local/include/gmock/gmock-function-mocker.h: No such file or directory
ls: /usr/local/include/gmock/gmock-more-matchers.h: No such file or directory
ls: /usr/local/include/gmock/gmock-cardinalities.h: No such file or directory
ls: /usr/local/include/gmock/gmock-spec-builders.h: No such file or directory
ls: /usr/local/include/gmock/gmock-nice-strict.h: No such file or directory
ls: /usr/local/include/gmock/gmock.h: No such file or directory
ls: /usr/local/include/gmock/gmock-actions.h: No such file or directory
ls: /usr/local/lib/libgmock.a: No such file or directory
ls: /usr/local/lib/libgmock_main.a: No such file or directory
ls: /usr/local/lib/pkgconfig/gmock.pc: No such file or directory
ls: /usr/local/lib/pkgconfig/gmock_main.pc: No such file or directory
ls: /usr/local/lib/cmake/GTest/GTestTargets.cmake: No such file or directory
ls: /usr/local/lib/cmake/GTest/GTestTargets-noconfig.cmake: No such file or directory
ls: /usr/local/lib/cmake/GTest/GTestConfigVersion.cmake: No such file or directory
ls: /usr/local/lib/cmake/GTest/GTestConfig.cmake: No such file or directory
ls: /usr/local/include/gtest/gtest-matchers.h: No such file or directory
ls: /usr/local/include/gtest/gtest-death-test.h: No such file or directory
ls: /usr/local/include/gtest/gtest-spi.h: No such file or directory
ls: /usr/local/include/gtest/gtest-assertion-result.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-string.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-death-test-internal.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-port.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-port-arch.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-internal.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-param-util.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-type-util.h: No such file or directory
ls: /usr/local/include/gtest/internal/gtest-filepath.h: No such file or directory
ls: /usr/local/include/gtest/internal/custom/gtest-port.h: No such file or directory
ls: /usr/local/include/gtest/internal/custom/README.md: No such file or directory
ls: /usr/local/include/gtest/internal/custom/gtest.h: No such file or directory
ls: /usr/local/include/gtest/internal/custom/gtest-printers.h: No such file or directory
ls: /usr/local/include/gtest/gtest-message.h: No such file or directory
ls: /usr/local/include/gtest/gtest-param-test.h: No such file or directory
ls: /usr/local/include/gtest/gtest-typed-test.h: No such file or directory
ls: /usr/local/include/gtest/gtest_pred_impl.h: No such file or directory
ls: /usr/local/include/gtest/gtest_prod.h: No such file or directory
ls: /usr/local/include/gtest/gtest-test-part.h: No such file or directory
ls: /usr/local/include/gtest/gtest.h: No such file or directory
ls: /usr/local/include/gtest/gtest-printers.h: No such file or directory
ls: /usr/local/lib/libgtest.a: No such file or directory
ls: /usr/local/lib/libgtest_main.a: No such file or directory
ls: /usr/local/lib/pkgconfig/gtest.pc: No such file or directory
ls: /usr/local/lib/pkgconfig/gtest_main.pc: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment