How to completely uninstall opencv ubuntu?

Kong picture Kong · Jul 6, 2016 · Viewed 21k times · Source

I am installing caffe and I think I screwed up my install by having multiple versions of OpenCV. Now i don't know what i did on my own but nothing seems to work right. So my safest bet is to do a complete utter uninstall of opencv. How do i do that help thanks ?

I would like to install python after that using conda

I followed this thread Removing all installed OpenCV libs

although when i typed $> sudo find / -name "*opencv*" -exec rm -i {} \;

ubuntu still keeps asking me for permission to remove every file which is annoying. how do i tell ubuntu to remove it all ?

Answer

Waj picture Waj · Nov 29, 2016

If you installed OpenCV using CMake then there should be an uninstall file in the same location as the install file, just run sudo make uninstall.