Installation de YouTube-DL sur 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
Brix_da_best