debian 13.0, downloaded yt-dlp with wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O ~/.local/bin/yt-dlp

the python script is in that directory, but if I execute yt-dlp on the terminal it returns bash: yt-dlp: command not found

what should I do?

  • 7EP6vuI@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    12 hours ago

    i think this is the correct question to ask. did you just create ~/.local/bin folder? you can look at the end of ~/.profile that this will only be added to $PATH if the folder exists.

    the easiest way is to log out and log in (no restart necessary!)

    otherwise you can also execute source ~/.profile and then yt-dlp should be available.

    the chmod +x tip from the other comments could also be necessary!