r/linuxquestions • u/dotpr • Sep 01 '22
Resolved How does Linux already know which app to install with just "sudo apt-get install" thingy
So I went through some Linux tutorial that made me install apps and I dont get how Linux can install, for example, VLC Media Player, with just `sudo apt-get install vlc
Like wtf? How did it determine that VLC Media Player is the one I want to install and not another app with "vlc" in the name? Also what if there are multiple versions available, how did it choose among them?
Edit: Thank you everyone for your reply, I got even more helpful information than what I asked for. I really appreciate it. Sorry if I can't thank you all one by one anymore, I've fallen down the rabbit hole and now browsing in r/unixporn. So much exciting things to do!
186
Upvotes
2
u/unkilbeeg Sep 01 '22
To expand a little, all the software a distribution has is in a publicly available storage area known as a repository. As everyone else has told you, proprietary software is rarely in those repositories.
HOWEVER. Some vendors of proprietary software maintain their own repositories for just their software. Google is one of these. You can add their repository to your list of where to get software, and from that point on, you can just
sudo apt-get install google-chrome-stableand not have to mess with complex scripts to download the deb and install it.Honestly, I'm a little surprised (and dismayed) that a tutorial has you doing that.
https://www.google.com/linuxrepositories/