There's a ghost in the shell.
I tried to remove youtube-dl through brew uninstall youtube-dl
:
-bash: brew: command not found
cool, that means I have not even installed brew.
I then checked if I could uninstall it through sudo pip uninstall youtube-dl
:
Skipping youtube-dl as it is not installed.
Let's check also sudo pip3 uninstall youtube-dl
:
Skipping youtube-dl as it is not installed.
Let's confirm it has not been installed through apt with sudo apt-get remove youtube-dl
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'youtube-dl' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
But if I type youtube-dl --version
youtube-dl is still there:
2021.04.26
I post a picture to show that I'm not mad:
If I type whereis youtube-dl
the response is:
youtube-dl: /home/bobby/.local/bin/youtube-dl
So I know it's there but how can I remove it?
What the hack of an application installed it?
EDIT: thank you but if I look inside the youtube-dl file I see this code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from youtube_dl import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
So this is not the youtube-dl executable but it looks like it's calling other files somewhere. Where are them?