卸载Opencv(apt方式)

一、参考资料

二、apt方式安装

sudo add-apt-repository ppa:timsc/opencv-3.3
sudo apt-get update
sudo apt install libopencv-dev

三、apt方式卸载

  1. 查找软件包
# 列出已安装的所有软件包
sudo dpkg -l

# 搜索软件包
sudo apt-cache search opencv*

# 列出的结果
ii  libopencv-core-dev:amd64                 3.3.1-xenial1.2           amd64                     development files for libopencv-core3.3
ii  libopencv-core3.3:amd64                  3.3.1-xenial1.2           amd64                     computer vision core library
ii  libopencv-dnn-dev:amd64                  3.3.1-xenial1.2           amd64                     development files for libopencv-ml3.3
ii  libopencv-dnn3.3:amd64                   3.3.1-xenial1.2           amd64                     computer vision Machine Learning library
ii  libopencv-highgui-dev:amd64              3.3.1-xenial1.2           amd64                     development files for libopencv-highgui3.3
ii  libopencv-highgui3.3:amd64               3.3.1-xenial1.2           amd64                     computer vision High-level GUI and Media I/O library
ii  libopencv-imgcodecs-dev:amd64            3.3.1-xenial1.2           amd64                     development files for libopencv-imgcodecs3.3
ii  libopencv-imgcodecs3.3:amd64             3.3.1-xenial1.2           amd64                     computer vision Image Codecs library
ii  libopencv-imgproc-dev:amd64              3.3.1-xenial1.2           amd64                     development files for libopencv-imgproc3.3
ii  libopencv-imgproc3.3:amd64               3.3.1-xenial1.2           amd64                     computer vision Image Processing library
ii  libopencv-shape-dev:amd64                3.3.1-xenial1.2           amd64                     development files for libopencv-shape3.3
ii  libopencv-video-dev:amd64                3.3.1-xenial1.2           amd64                     development files for libopencv-video3.3
ii  libopencv-video3.3:amd64                 3.3.1-xenial1.2           amd64                     computer vision Video analysis library
ii  libopencv-videoio-dev:amd64              3.3.1-xenial1.2           amd64                     development files for libopencv-videoio3.3
ii  libopencv-videoio3.3:amd64               3.3.1-xenial1.2           amd64                     computer vision Video I/O library
  1. 卸载opencv相关软件包和依赖
# 删除软件包
sudo apt-get --purge remove libopencv*
sudo apt-get --purge remove opencv*

# 删除相关依赖
sudo apt-get autoremove
  1. 清除已下载的软件包和旧软件包
sudo apt-get autoclean
  1. 删除相关文件
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*
  1. 更新软件源
# 更新安装源
sudo apt-get update

# 更新已安装的软件包
sudo apt-get upgrade
  • 4
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

花花少年

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值