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

  • onlooker@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I’ll assume you’re new to Debian, so apologies if this is not true. The reason I say this is because generally speaking, “installing with wget” isn’t how one is supposed to install software in Debian, using a program called apt is. yt-dlp is available in Debian 13’s repositories. What I suggest doing is running apt install yt-dlp as root. That way the app will be installed globally, meaning it’ll work without the system spitting out the error you’ve described. And on another positive note, the app will get updated automatically whenever you upgrade the system.

    If this isn’t for you, suggestions from other users here are valid and helpful.

  • Vittelius@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I found pipx the easiest way to install and manage a current ytdlp installation

    sudo apt install pipx
    pipx ensurepath
    
    pipx install yt-dlp
    

    Yes I know, it’s an additional package manager, but it actually is a package manager and will therefore ensure the setup is correct