How to use the youtube-dl version from the homepage with your /home/user/bin dir.
youtube-dl isn't up to date any more, prefer yt-dlp
The binary
cd #change to your home dir #If ~/bin exists, leave the next line out mkdir bin && source ~/.profile #create ~/bin and run ~/.profile to have the dir in the $PATH cd bin wget https://yt-dl.org/downloads/latest/youtube-dl chmod a+rx youtube-dl
for daily updates for the binary add the following line to your crontab with crontab -e:
0 3 * * * ~/bin/youtube-dl -U >/dev/null
man page
cd mkdir man mkdir man/man1 && source ~/.profile cd man/man1 #install pandoc for formatting the man-page #e.g.: become root; apt-get install pandoc wget https://raw.githubusercontent.com/rg3/youtube-dl/master/README.md echo -e "% youtube-dl(1)\n% Daniel Bolton\n% `date "+%Y-%m-%d"`" > youtube-dl-pandoc-header.md #create a file with a pandoc title block for the pandoc_title_block extension sed '1,/download.html/d' README.md > youtube-dl-pandoc-body.md # remove installation section pandoc -o youtube-dl.1 -s -t man youtube-dl-pandoc-header.md youtube-dl-pandoc-body.md # create the man page from header and body rm README.md youtube-dl-pandoc-*.md # remove the temp files gzip -9 youtube-dl.1 # compress the man page #INSTEAD of gzip you can use zopfli, if you have installed it zopfli --i10000 youtube-dl.1 && rm youtube-dl.1