I have a Debian server which is a "shared server" so I don't have root access but I want to install youtube-dl on it. Is it possible to install it some other way? Like it only accessing current directory or other limitations?
You can install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)" PATH="$HOME/.linuxbrew/bin:$PATH"
Add the line
export PATH="$HOME/.linuxbrew/bin:$PATH" to your
echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bashrc
brew install youtube-dl youtube-dl -U
Just interpolate from the documentation.
mkdir ~/bin curl -L https://yt-dl.org/downloads/latest/youtube-dl -o ~/bin/youtube-dl chmod 0750 ~/bin/youtube-dl
mkdir ~/bin wget https://yt-dl.org/downloads/latest/youtube-dl -O ~/bin/youtube-dl chmod 0750 ~/bin/youtube-dl
Note its requirements.
It requires the Python interpreter (2.6, 2.7, or 3.2+).
If this a work server, know in advance whether you are permitted to install and stream.
wget https://yt-dl.org/downloads/latest/youtube-dl -O /download/path/ chmod u+rx /download/path/youtube-dl
Make sure you have access to the