How to Install and Uninstall libopencv-dev Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 23,2024

1. Install "libopencv-dev" package

This is a short guide on how to install libopencv-dev on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install libopencv-dev

2. Uninstall "libopencv-dev" package

Please follow the guidance below to uninstall libopencv-dev on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove libopencv-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the libopencv-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Package: libopencv-dev
Architecture: amd64
Version: 4.2.0+dfsg-5
Priority: optional
Section: universe/libdevel
Source: opencv
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Science Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 399
Depends: libopencv-calib3d-dev (= 4.2.0+dfsg-5), libopencv-contrib-dev (= 4.2.0+dfsg-5), libopencv-core-dev (= 4.2.0+dfsg-5), libopencv-dnn-dev (= 4.2.0+dfsg-5), libopencv-features2d-dev (= 4.2.0+dfsg-5), libopencv-flann-dev (= 4.2.0+dfsg-5), libopencv-highgui-dev (= 4.2.0+dfsg-5), libopencv-imgcodecs-dev (= 4.2.0+dfsg-5), libopencv-imgproc-dev (= 4.2.0+dfsg-5), libopencv-ml-dev (= 4.2.0+dfsg-5), libopencv-objdetect-dev (= 4.2.0+dfsg-5), libopencv-photo-dev (= 4.2.0+dfsg-5), libopencv-shape-dev (= 4.2.0+dfsg-5), libopencv-stitching-dev (= 4.2.0+dfsg-5), libopencv-superres-dev (= 4.2.0+dfsg-5), libopencv-ts-dev (= 4.2.0+dfsg-5), libopencv-video-dev (= 4.2.0+dfsg-5), libopencv-videoio-dev (= 4.2.0+dfsg-5), libopencv-videostab-dev (= 4.2.0+dfsg-5), libopencv-viz-dev (= 4.2.0+dfsg-5), libopencv4.2-java (= 4.2.0+dfsg-5), pkg-config, libc6 (>= 2.14), libgcc-s1 (>= 3.0), libopencv-calib3d4.2 (>= 4.2.0+dfsg), libopencv-contrib4.2 (>= 4.2.0+dfsg), libopencv-core4.2 (>= 4.2.0+dfsg), libopencv-features2d4.2 (>= 4.2.0+dfsg), libopencv-highgui4.2 (>= 4.2.0+dfsg), libopencv-imgcodecs4.2 (>= 4.2.0+dfsg), libopencv-imgproc4.2 (>= 4.2.0+dfsg), libopencv-videoio4.2 (>= 4.2.0+dfsg), libstdc++6 (>= 9), libilmbase-dev
Recommends: opencv-data
Suggests: opencv-doc
Conflicts: libcv-dev, libcvaux-dev, libhighgui-dev
Breaks: libopencv-core-dev (<= 2.3.1-8)
Replaces: libcv-dev, libcvaux-dev, libhighgui-dev
Filename: pool/universe/o/opencv/libopencv-dev_4.2.0+dfsg-5_amd64.deb
Size: 93616
MD5sum: e5013152ec8f50f1cdb77ff03f9f6c5f
SHA1: 7a9437f1d731cb60435587e35d9ac6baeb1e5ee0
SHA256: 402945aaac4c44296b59280ff4bb114fe9b8d41028fbe4ba128ec36f53fd7678
Homepage: https://opencv.org
Description: development files for opencv
Description-md5: f9dc67381f1013c39fe59842c79cbddf