Horje
Installing YouTube-DL on WSL2 Arch Linux Code Example
Installing YouTube-DL on WSL2 Arch Linux
# 1. Enable the extra repository on /etc/pacman.conf:
[extra]
Include = /etc/pacman.d/mirrorlist

# 2. Install python-pip zst package:
sudo pacman -Syu python-pip
 
# 3. Upgrade pip theb virtualenv:
sudo pip install --upgrade pip 
sudo pip install --upgrade virtualenv

# 4. Installing youtube-dl with pip and upgrade youtube-dl with pip:
sudo pip install youtube_dl
sudo pip install --upgrade youtube_dl

# 5. Warning Error and how to resolve it:

#5.1 The Warning
#WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager.

#5.2 The command to resolve it:
sudo curl -L https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl

#5.3 Then set permissions:
sudo chmod a+rx /usr/local/bin/youtube-dl

#6 Installing ffmpeg
sudo pacman -Syu ffmpeg




Shell

Related
npm install "refusing to delete" directory is outside directory and not a link Code Example npm install "refusing to delete" directory is outside directory and not a link Code Example
wsl2 with cisco anyconnect Code Example wsl2 with cisco anyconnect Code Example
Failed to build logging Installing collected packages: logging     Running setup.py install for logging ... error Code Example Failed to build logging Installing collected packages: logging Running setup.py install for logging ... error Code Example
copy file from windows to linux permission denied wsl Code Example copy file from windows to linux permission denied wsl Code Example
bash do multiple times Code Example bash do multiple times Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9