Frage

Is there's any tool for managing /etc/apt/source.list? I've had already couple of variants when I need it so bad, for example when using fabric or chef or when using veewee for building boxes of Vagrant.

Every time using sed, and putting my own mirrors doesn't look really productive. That's why I'm asking maybe anybody knows a tool to manage source.list?

War es hilfreich?

Lösung

Git? But you should be separating your lists.

Put the mirrors in separate files in the /etc/apt/sources.list.d/ directory.

This way if you need all you fabric mirrors, copy /etc/apt/sources.list.d/fabric.list.

This will be changeable by something like puppet or saltstack. If you then /etc/apt/preference correctly, when fabric mirrors are present then they will be used in preference to other mirrors (where there is a conflict of package versions and dependencies).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top