Freebsd install the latest version of yt-dlp even if you are running quarterly packages.
Quarterly packages are released every 3 months which means the version of yt-dlp will be quite old
	
		
	
freebsd yt-dlp latest release install
	
	
		
			
				
					
						 
					
				
			
			
				
					
						
							 github.com
						
					
					github.com
				
			
		
	
we will manually download the latest release of yt-dlp
however the the yt-dlp shebang points to python3 so we need to fix issue using a symlink
and alter our shell path so binaries in our home bin directory override those installed in /usr/local/bin
this will allow applications that use yt-dlp in the backend to use the lastest version
instead of the old version installed with pkg
the yt-dlp shebang points to python3
so we need to create a symlink from python 3.9 to python3
obviously you need python3.9 installed
	
	
	
		
edit your ~/.zshenv
	
	
	
		
set your path so that the bin directory in your home comes before /usr/local/bin
	
	
	
		
this allows us override yt-dlp installed in /usr/local/bin with our newer version install in the bin directory in your home
download yt-dlp from the release on github
	
	
		
			
				
					
						 
					
				
			
			
				
					
						
							 github.com
						
					
					github.com
				
			
		
	
make yt-dlp executable
	
	
	
		
and move it to the bin directory in your home
if you dont have a bin directory create it
	
	
	
		
run which yt-dlp
	
	
	
		
it should output
	
	
	
		
instead of
	
	
	
		
check the version
	
	
	
		
ouput
2023.11.16
pkg version
	
	
	
		
outputs
2023.07.06
update yt-dlp in your bin directory by running
	
	
	
		
				
			Quarterly packages are released every 3 months which means the version of yt-dlp will be quite old
freebsd yt-dlp latest release install
cerberus/freebsd/yt-dlp-python-symlink.org at master · NapoleonWils0n/cerberus
cerberus code library. Contribute to NapoleonWils0n/cerberus development by creating an account on GitHub.
				we will manually download the latest release of yt-dlp
however the the yt-dlp shebang points to python3 so we need to fix issue using a symlink
and alter our shell path so binaries in our home bin directory override those installed in /usr/local/bin
this will allow applications that use yt-dlp in the backend to use the lastest version
instead of the old version installed with pkg
the yt-dlp shebang points to python3
so we need to create a symlink from python 3.9 to python3
obviously you need python3.9 installed
		Code:
	
	sudo ln -s /usr/local/bin/python3.9 /usr/local/bin/python3edit your ~/.zshenv
		Code:
	
	vi ~/.zshenvset your path so that the bin directory in your home comes before /usr/local/bin
		Code:
	
	typeset -U PATH path
path=("$HOME/bin" "/usr/local/bin" "$path[@]")
export PATHthis allows us override yt-dlp installed in /usr/local/bin with our newer version install in the bin directory in your home
download yt-dlp from the release on github
Releases · yt-dlp/yt-dlp
A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp
				make yt-dlp executable
		Code:
	
	chmod +x yt-dlpand move it to the bin directory in your home
if you dont have a bin directory create it
		Code:
	
	mv yt-dlp ~/binrun which yt-dlp
		Code:
	
	which yt-dlpit should output
		Code:
	
	/home/username/bin/yt-dlpinstead of
		Code:
	
	/usr/local/bin/yt-dlpcheck the version
		Code:
	
	yt-dlp --versionouput
2023.11.16
pkg version
		Code:
	
	/usr/local/bin/yt-dlp --versionoutputs
2023.07.06
update yt-dlp in your bin directory by running
		Code:
	
	yt-dlp -U 
			     
 
		 
 
		
 
 
		 
 
		