Zoë Peterson
Zoë Peterson

Reputation: 13312

Etiquette for adding repository during rpm/deb install

We're distributing a commercial application for Linux and we currently make it available for download as a .tar.gz, a .rpm, and a .deb. We're setting up both RPM and DEB repositories to make upgrading easier. Is it appropriate to add our repository to /etc/apt/sources.list or /etc/yum.repos.d automatically as part of the initial install? Are there any good reasons not to?

Upvotes: 2

Views: 214

Answers (2)

ozona
ozona

Reputation: 446

Read the Debian policy manual

http://www.debian.org/doc/debian-policy/

If it's not in there, discuss it on one of the Debian developer mailing lists.

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

It is a perfectly viable strategy to drop files in /etc/yum.repos.d and /etc/pki/rpm-gpg for the purpose of adding a yum repo. Many popular repos do exactly this. Editing a flat file such as /etc/apt/sources.list is trickier (especially on remove), but it can be done.

Upvotes: 4

Related Questions