How to upgrade OpenCV version?

Hi everyone,

My system ;

NVIDIA Jetson Nano
L4T 32.2.0 [ JetPack 4.2.1 ]
Ubuntu 18.04.3 LTS
Kernel Version: 4.9.140-tegra
CUDA 10.0.326

I have OpenCV 3.3.1.

How can I upgrade OpenCV version ?

Thanks for your helps.

I removed OpenCV 3.3.1.

I followed this document and installed it from the source.

https://docs.opencv.org/4.2.0/d2/de6/tutorial_py_setup_in_ubuntu.html