Bug#466407: Automated way to get suite names

2021-08-18 Thread Oliver C.

Dear Nye Liu

/usr/lib/os-release
does have enough informations to read the current suite name of the
installed system.

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/;
SUPPORT_URL="https://www.debian.org/support;
BUG_REPORT_URL="https://bugs.debian.org/;

and running a single command like
"apt search base-files"
will give you the information if it is oldstable, stable, testing or
something else.

Example:

apt search base-files
Sortierung... Fertig
Volltextsuche... Fertig
base-files/oldstable,now 10.3+deb10u10 amd64  [installiert]
  Debian base system miscellaneous files


oldstable is in the line base-files/oldstable.


If you combine both, you will know the stable/testing to suite name
mapping of the current installed system.

I hope this helps.

Best Regards
Oliver



Bug#466407: Automated way to get suite names

2018-04-12 Thread Nye Liu
It has now been 10 years.

I will work on this if someone can suggest a way to deterministically
map stable/testing to suite names.



Bug#466407: Automated way to get suite names

2015-07-01 Thread Nye Liu
Perhaps we can hit a mirror README (e.g.
http://http.us.debian.org/debian/dists/README) and parse out the
stable/testing/unstable/experimental - suite mappings?

Or is there a canonical way to do so?


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org