How to uninstall youtube-dl

For future reference, you should install and update software using pacman, the Arch Linux package manager. For example, youtube-dl is in the community repository so it can be installed simply by running sudo pacman -S youtube-dl. Then, if you need to uninstall it, you can easily do so by running sudo pacman -R youtube-dl.

If the program you’re looking for is not in the Arch Linux repos, or in the EndeavourOS repo, then the first place to look for it should be the AUR. By using an AUR helper like yay installing and updating software from the AUR couldn’t be easier (but be aware of the risks involved with completely automating that process).

If the program is not in the AUR, but you can download it from the internet, you should install it manually into your home directory and just add it to the PATH variable. Personally, I have ~/bin for such things, but people often use ~/local/bin (it’s a personal preference).

In any case, if you want your system to run smoothly, anything you do manually outside the user space should be kept to a bare minimum.

4 Likes