Skip to main content
deleted 2 characters in body
Source Link

TLTR; This answer may help someone

From any bash shell you could use youtube-dl

Edit: yt-dlp is an enhanced fork of youtube-dl and could be a replacement in any script as @barlop mentioned (but it seems to be only downloadable and instailable withand upgradable only from pip - not the system package manager)


youtube-dl installation for Ubuntu

Package manager (apt / yum / ... repo)

sudo apt install youtube-dl

only youtube-dl : this method isn't applicable for yt-dlp

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

TLTR; This answer may help someone

From any bash shell you could use youtube-dl

Edit: yt-dlp is an enhanced fork of youtube-dl and could be a replacement in any script as @barlop mentioned (but it seems to be only downloadable and instailable with pip - not the system package manager)


youtube-dl installation for Ubuntu

Package manager (apt / yum / ... repo)

sudo apt install youtube-dl

only youtube-dl : this method isn't applicable for yt-dlp

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

TLTR; This answer may help someone

From any bash shell you could use youtube-dl

Edit: yt-dlp is an enhanced fork of youtube-dl and could be a replacement in any script as @barlop mentioned (but it seems to be instailable and upgradable only from pip - not the system package manager)


youtube-dl installation for Ubuntu

Package manager (apt / yum / ... repo)

sudo apt install youtube-dl

only youtube-dl : this method isn't applicable for yt-dlp

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

yt-dlp mention
Source Link

TLTR; This answer may help someone

From any bash shell you could use youtube-dl

Edit: yt-dlp is an enhanced fork of youtube-dl and could be a replacement in any script as @barlop mentioned (but it seems to be only downloadable and instailable with pip - not the system package manager)


youtube-dl installation for Ubuntu

apt repoPackage manager (apt / yum / ... repo)

sudo apt install youtube-dl

only youtube-dl : this method isn't applicable for yt-dlp

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

TLTR; This answer may help someone

From any bash shell you could use youtube-dl


youtube-dl installation for Ubuntu

apt repo

sudo apt install youtube-dl

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

TLTR; This answer may help someone

From any bash shell you could use youtube-dl

Edit: yt-dlp is an enhanced fork of youtube-dl and could be a replacement in any script as @barlop mentioned (but it seems to be only downloadable and instailable with pip - not the system package manager)


youtube-dl installation for Ubuntu

Package manager (apt / yum / ... repo)

sudo apt install youtube-dl

only youtube-dl : this method isn't applicable for yt-dlp

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

more notes
Source Link

TLTR; This answer may help someone

From any bash shell you could use youtube-dl


youtube-dl installation for Ubuntu

apt repo

sudo apt install youtube-dl

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip 

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

TLTR; From any bash shell you could use youtube-dl


youtube-dl installation for Ubuntu

apt repo

sudo apt install youtube-dl

python package (python scriptable)

sudo apt install python3 python3-pip
# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
pip install -U youtube-dl

Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

TLTR; This answer may help someone

From any bash shell you could use youtube-dl


youtube-dl installation for Ubuntu

apt repo

sudo apt install youtube-dl

python package (python scriptable) (mostly updated)

# you will need pip installed
sudo apt install python3 python3-pip 

# always use latest version or upgrade
# you may use sudo for system-wide installation (not recommended)
# if the instlation is successful and still command-not-found
# - add python's `dist-packages` dir to path on your system
pip install -U youtube-dl

keep in mind: most of time only latest version is the working one


Download one link videos (file/playlist/search)

# replace `mp4` with extention needed
# replace `https://link/to/download` with desired download link
youtube-dl -f mp4 "https://link/to/download"

Download multible files

From file containing links

while IFS= read -r line; do ( youtube-dl "$line" ); done < file.txt 

refer to @terdon answer on this question for silent interpreting

From a search link or playlist you could just let youtube-dl download it as files

or refer to this answer of my past question for a more structured download https://stackoverflow.com/a/67144906/9907243

Source Link
Loading