How to update the OpenCV that comes with the Jetpack?

The OpenCV that comes with the latest Jetpack is out of date. How to update?

Hiasrock, you can uninstall the packages from the command line with apt, and then build the latest from source. You can search for the openCV packages with apt-cache. Alternatively, when installing JetPack, you can choose not to install OpenCV from the JetPack Component Manager.