How to uninstall opencv in ubuntu


The editor in this article will introduce how to uninstall opencv in ubuntu in detail. The content is detailed, the steps are clear, and the details are handled properly. I hope this article on how to uninstall opencv in ubuntu can help you solve your doubts. Follow the editor's ideas and slowly deepen , Let's learn new knowledge together.

1. Use the shortcut key [Ctrl+Alt+T] on the ubuntu system desktop to open the terminal command line mode.

2. Enter the following command on the ubuntu terminal command line to enter the build directory where opencv is installed and uninstall it.

sudo make uninstall

cd (install opencv build directory path) #Use the cd command to enter the opencv build directory

sudo rm -r build

3. Finally, enter the following command to clear all opencv related items in /usr.

sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv*

Note: Some folders may not be found, so there is no need to clean them up.

Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us