22
submitted 9 hours ago* (last edited 9 hours ago) by arsus5478@lemmy.ml to c/linux@lemmy.ml

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?

you are viewing a single comment's thread
view the rest of the comments
[-] BombOmOm@lemmy.world 8 points 7 hours ago* (last edited 6 hours ago)

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.

[-] ferric_carcinization@lemmy.ml 4 points 6 hours ago

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

[-] Tanoh@lemmy.world 1 points 30 minutes ago

Unless you have . in your $PATH

[-] joyjoy@lemmy.zip 4 points 6 hours ago

You also need to chmod +x path files downloaded from the internet to make it executable.

this post was submitted on 20 Aug 2025
22 points (92.3% liked)

Linux

57274 readers
250 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS