https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#release-files
You download the binary for your system. Like for me, I download the Linux standalone binary and rename it yt-dlp
Then to use it in a terminal it's usually as simple as :
```
yt-dlp
```
And it can usually download other sources too.