|
|
Log in / Subscribe / Register

Just get rid of the sid name

Just get rid of the sid name

Posted Aug 16, 2024 11:19 UTC (Fri) by bluca (subscriber, #118303)
In reply to: Just get rid of the sid name by ralfj
Parent article: Distinguishing Debian testing from unstable

> "testing" and "trixie" should, in the eyes of os-release, be considered different versions of Debian with different identity.

They shouldn't, because it doesn't magically change - you need to hit the upgrade button. Whether you hit only the upgrade button, or you also edit a distro-specific file to change the codename and then hit the upgrade button, is just a technical detail and a process thingy. oldstable, stable, testing are just aliases - they are literally symlinks, and do not change the identity of a system, it's just a shortcut to avoid having to edit a file when you want to always track "latest" or always track "supported" or so and so. You could very well set up a system that configures everything using the 'bookworm' codename, and every day checks whether the 'stable' symlink on the archive on ftp.debian.org still points to it, and when it moves, automatically edits your apt sources 'bookworm' -> 'trixie' or whatever it points to now, and automatically upgrades you. This is conceivable thing you can do, albeit not really recommended, but it doesn't really change what os-release is for or how it should be used. If the codename changes due to an upgrade, then os-release's content changes too accordingly. Upgrades and downgrades are allowed!

The closest to the "source of truth" we have are the officially signed archive repository metadata files, and you can see for yourself what they say right at the top for the various cases:

https://ftp.debian.org/debian/dists/testing/InRelease
https://ftp.debian.org/debian/dists/trixie/InRelease

https://ftp.debian.org/debian/dists/stable/InRelease
https://ftp.debian.org/debian/dists/bookworm/InRelease

https://ftp.debian.org/debian/dists/unstable/InRelease
https://ftp.debian.org/debian/dists/sid/InRelease

When you download a 'stable' or 'testing' image, it will contain a copy of that file and it will point to only one of those codenames, not multiple ones. It might be out of date, but that's ok - it's an identifier for the vendor OS tree you just downloaded, not a statement about what you might find if you go to the archive directly. If one wanted to add timestamps that indicate _when_ the image was built, so that you get an idea about its "freshness", that's ok too, there's the BUILD_ID field for that purpose.

The next best "official" resource we have is https://release.debian.org/ and at the bottom it says:

stable
Fast response for security updates. Minor updates include security and other important fixes only. Major updates are sourced from testing, and are infrequent, but large.

testing
Security updates are irregular and unreliable. Release standards are almost continually met. Updates are automatically sourced from unstable, happen four times each day and are usually small.

unstable
Security updates are made by the maintainer; they may not be effective on all architectures, and may be delayed. Packages uploaded may not meet release standards, but any breakage is expected to be fixed promptly. Updates are made by maintainers.

Note how it distinguishes the lifecycle and characteristics of stable vs testing vs unstable (so much for unstable and testing being the same thing, amiright?), but not between codenames and aliases.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds