Once the onion network is established, I would like to run yt-dlp, however, I am hit by the error message saying no connection is established.. same goes to other software I use.
Since torsocks simply uses LD_PRELOAD, you could try to make this apply globally by adding the torsocks library to ld.so.preload. Just put the path returned by torsocks show in /etc/ld.so.preload.