Apologies in advance if this is off-topic.
When I want to install an app in, say, Ubuntu, I go to terminal and type something that indicates I want that app to be installed.
What I don't do is type the exact location I want it to be installed from.
This is quite different than, say, GUI based Windows or OS X, where one would use a browser to navigate to some page on the WWW, download a large package, and then double click it to install it.
- Where do the linux apps come from?
- Who ensures that those repositories have not been corrupted with malware?
- I'm presuming that there are multiple repositories. And if so, how does my linux PC decide which repository to download a package from?
- Do different distros all have the same repository, or different?
- If I'm using some full-featured latest release of Ubuntu, versus if I'm a light-weight version such as Puppy Linux, and I type the same exact command into terminal to install some app, will I be installing the same app in both cases, or different? How is all of this handled so that the wrong version doesn't get installed in the wrong place?