Question

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?

Was it helpful?

Solution

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top