How to upgrade gstreamer version to 1.20 without breaking deepstream on jetson devices

I wasn’t able to update the default gstreamer either but so far I’ve had luck with building 1.22 and running it from another location so that it doesn’t replace any of the default gstreamer libraries.