From 5ba4a0b69ce84f02ec7015e68c3d4b69983959e6 Mon Sep 17 00:00:00 2001 From: Ashish <39122144+Ashish0804@users.noreply.github.com> Date: Sun, 7 Mar 2021 15:29:01 +0530 Subject: [PATCH] [Documentation] Inclusion of two-line install script for Unix (#155) Closes #83 Authored-by: Ashish ci skip all --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index b9ec74f11..f9005118c 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,23 @@ You can install yt-dlp using one of the following methods: * Use pip+git: `python -m pip install --upgrade git+https://github.com/yt-dlp/yt-dlp.git@release` * Install master branch: `python -m pip install --upgrade git+https://github.com/yt-dlp/yt-dlp` +UNIX users (Linux, macOS, BSD) can also install the [latest release](https://github.com/yt-dlp/yt-dlp/releases/latest) one of the following ways: + +``` +sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp +sudo chmod a+rx /usr/local/bin/yt-dlp +``` + +``` +sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp +sudo chmod a+rx /usr/local/bin/yt-dlp +``` + +``` +sudo aria2c https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp +sudo chmod a+rx /usr/local/bin/yt-dlp +``` + ### UPDATE Starting from version `2021.02.09`, you can use `yt-dlp -U` to update if you are using the provided release. If you are using `pip`, simply re-run the same command that was used to install the program.