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?

SOLVED: add .local/bin to your $PATH

you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 1 year ago* (4 children)

I believe you simply downloaded the file to ~/.local/bin/yt-dlp, you did not install it. You need to either add that location to your path or you need to cd to that folder in terminal, then run the command. It will check things in the current folder when trying to run executables.

  • source
  • hideshow 4 child comments
  • [–] 5 points 1 year ago (3 children)

    Unlike Windows, on Linux you need to run ./<command> instead of just <command> for executables in you current directory.

  • source
  • parent
  • hideshow 3 child comments