Problem installing software [SOLVED]

Halvor Raknes

Member
Joined
Apr 19, 2021
Messages
139
Reaction score
15
Credits
1,081
I want to install yt-dlp which is a spin-off of youtube-dl.

On the page https://github.com/yt-dlp/yt-dlp it says:

You can install yt-dlp using one of the following methods:


Using the release binary​


You can simply download the correct binary file for your OS: [Windows] [UNIX-like]

I downloaded the "UNIX-like" file, yt-dlp (2.2 MB) to my home directory.

But when I try and run it I get
$ yt-dlp yt-dlp: command not found

What am I doing wrong?
 
Last edited:


OK. That worked. It also worked when I entered ./yt-dlp.

It seems my home directory isn't automatically scanned for executables?
 
Only certain paths are searched for binaries, share the output of the following.
Code:
echo $PATH
 
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
 
Add the following line to the bottom of the following file -> ~/.bashrc
Code:
export PATH=$PATH:$HOME/bin
Then create a bin directory in your homedir and place the binary there.
Code:
mkdir ~/bin
 
Never mind what I said in my first reply, I just checked a Mint installation and it should be enough if you create the bin dir first in your homedir so try this.
Code:
mkdir ~/bin
echo $PATH
I found a line in the user's profile which tells you that if the directory ~/bin exists( in your users home directory) that it should search that path. Or are you running another distribution?
 
Last edited:

Members online


Top