I read many articles on the internet about how to install a program on Linux, for example Ubuntu, but I'm still confused!
What I understand 'till now is:
First, we should add repository that contains our intended package. In Ubuntu, it will be done by un-commenting the related line in
Then we should update our repository's package list by executing
at the end, install our program by executing
... but still I can't understand!
When we un-comment a repository in
sources.list, does that mean that we tell the OS: "download this repository on my computer"? Is it needed that repository be downloaded at all? If not, so what happen in the system by un-commenting a line in sources.list?
apt-get updatedoes? as I read :
apt-get update downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.
What does that mean exactly? We have a repository with some packages; does that means that some repositories may be out of date? So why instead they don't update repositories on the server that would be always up to date and nobody need to do