CleverCloud / clever-tools

The official command line interface for Clever Cloud
https://www.clever-cloud.com/
Apache License 2.0
73 stars 46 forks source link

Debian: write repository data in a specific file #486

Open alexislefebvre opened 3 years ago

alexislefebvre commented 3 years ago

The documentation for Debian (and Ubuntu) writes to the file /etc/apt/sources.list:

echo "deb […] stable main" | tee -a /etc/apt/sources.list

Source: https://github.com/CleverCloud/doc.clever-cloud.com/blob/9891f03a216a3c7e4b6e9ab02aee525d31e6ccf1/reference/clever-tools/getting_started.md#debianubuntu-deb

I suggest to write to a specific file, like /etc/apt/sources.list.d/clever-tools.list

For example, that's what Brave uses:

echo "deb[…] stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list

I think that it's more clean to have a dedicated file than write in the /etc/apt/sources.list system file.

alexislefebvre commented 3 years ago

Shoud it be moved to https://github.com/CleverCloud/doc.clever-cloud.com?