The distro-info
and distro-info-data
debian/ubuntu package provides centralized lists of code-names and release
history for the supported distributions (Currently: Debian and Ubuntu).
This package makes these information usable inside golang projects.
$ go get github.com/fsrv-xyz/distro-info
See the contents of the example directory for basic usage.
The distroinfo
package is updated regularly. If you need to update the information on your own, you can use the generate script inside the data
directory.
Requirements:
- bash
- curl
- jq
- python3
- an internet connection ;)
The current version of the latest debian package is pinned in generate.go.
Run go generate
to update the information.