On 31 Aug 2015, at 12:36, Paul Moore <p.f.moore@gmail.com> wrote:On 31 August 2015 at 10:43, Wichert Akkerman <wichert@wiggy.net> wrote:I just wanted to add a bit of context, since your statement seemed to reflect a slightly different reality than mine. You do bring up a good point though. I really like the apt-preferences approach. That allows you to define some rules to set which repository should be used. You can do things like always prefer a specific repository, or do that only for specific packages, with a default rule to use whichever repository has the latest version. Very, very useful.
There's been a few posts now about how the new system is or is not
like Linux package management systems. As a Windows user, my view of
Linux package management is pretty limited. To me it seems like the
basic approach is, if a package is in the official repo, you can just
do apt-get install (or yum install) and it works. If the package is
elsewhere, you need to find out where (usually manually, as far as I
can see) and then do a bit of config, and then the package is
available just like standard ones. That's pretty much the same as the
proposed solution for PyPI/pip.
If there's any additional functionality that Linux systems provide,
could someone summarise it from an end user POV for me? (And maybe
also point out why I'd never noticed it as a naive Linux user!) To me,
that's a key to whether this PEP is missing something important
relative to those systems.
There are two things of note here: you can have multiple archive types (“deb” and “deb-src” in this case), and different URL types. Besides the standard http there is also a cdrom scheme which can mount cdroms, there is a tor scheme now, etc. These are pluggable and handled by a binaries in /usr/lib/apt/methods/ . When you do an install of a new computer the installer will add some default repositories there, generally a local mirror and the security archive. https://wiki.debian.org/SourcesList has some more detailed information (which is probably not relevant here).# Hetzner APT-Mirror
deb http://mirror.hetzner.de/ubuntu/packages trusty main restricted universe multiversedeb http://de.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
# add-apt-repository ppa:saltstack/salt# add-apt-repository “deb http://nl.archive.ubuntu.com/ubuntu trusty universe"
# apt-cache policy salt-minion
salt-minion:
Installed: 2015.5.3+ds-1trusty1
Candidate: 2015.5.3+ds-1trusty1
Version table:
*** 2015.5.3+ds-1trusty1 0
500 http://ppa.launchpad.net/saltstack/salt/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
0.17.5+ds-1 0
500 http://mirror.hetzner.de/ubuntu/packages/ trusty/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
Package: salt*Pin: origin “LP-PPA-saltstack-salt”Pin-Priority: 900