Understanding software, updates and repositories.
Hi,
Can anyone perhaps given me a bit of information on how Linux deals with software and updates etc. please? I have read as much as I could on the subject and have become a bit confused. As far as I can tell, distros come with standard repositories of hardware. Therefore, if software is part of this repository, you can install it via Code:
sudo apt-get install x Code:
sudo apt-get update Code:
sudo apt-get upgrade PPAs are non-official repositories that can be added, to offer additional software. Once installed, this additional software can also be updated via the update/upgrade commands. Is all this correct so far? If so, I have a few further questions: 1. I note that there is an additional way of installing software - via a binary package that you can download and install (similar to Windows). If I install software in this way, does it automatically get added to the repository list so the software can automatically be kept up-to-date? 2. When adding, repositories, I note that there tends to be a repository address that gets added to the repository list and also a key. Examples if two programs that I am interested in but not in my official Debian repository: TVHeadend - https://tvheadend.org/projects/tvhea.../AptRepository and Emby - https://software.opensuse.org/downlo...ge=emby-server Am I correct in thinking, therefore, that: Code:
echo "deb https://dl.bintray.com/tvheadend/deb xenial stable-4.2" | sudo tee -a /etc/apt/sources.list Code:
echo 'deb http://download.opensuse.org/repositories/home:/emby/Debian_8.0/ /' > /etc/apt/sources.list.d/emby-server.list Code:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 Code:
wget -nv http://download.opensuse.org/repositories/home:emby/Debian_8.0/Release.key -O Release.key |
Hi, elsmandino.
Your question is a bit complex (many questions in one), so I'll just answer one of them. Firstly, all your comments refer to the Dpkg/APT package management system used by Debian and its derivatives (such as Ubuntu and Mint). There are other package management systems out there, such as RPM, used by other systems. Have a read of this, you might find it useful: https://www.linode.com/docs/tools-re...age-management For APT, to update your system's package database so that it knows which packages are available in the various repositories, you run: Code:
sudo apt-get update Code:
sudo apt-get upgrade Code:
sudo apt-get install package |
deleted
|
Quote:
Repositories basically provide a means of collecting packages together and allowing, in a secure manner, the installation of software (and dependencies) from the repository and the upgrading of software to newer versions held in the repository. The alternative isn't only self-compilation. For example, you can download a package manually and install it. You can download a standalone (portable) program and run it. You can download software with its own installer which you then run on your machine. None of these require the use of a repository. |
Also, some vendors provide their own repositories, with instructions to show you how to add them to the list of locations searched for packages and updates. When you have done this, the standard mechanisms now allow them to provide updates to their code, and to include dependency specifications referencing files in their and/or in public repositories.
Notice also that there is an ambiguity with regard to the word, "repository." Version control systems use the same term to have a different meaning. |
All times are GMT -5. The time now is 12:12 AM. |