You are not logged in.
I'm running Devuan-based PeppermintOS. Which version, you might ask; I've found it's difficult to tell.
I've noticed that all the places I'm used to looking to see my release information seem to be unpopulated:
neofetch: "OS: n/a x86_64"
$ lsb_release -a
No LSB modules are available.
Distributor ID: n/a
Description: n/a
Release: n/a
Codename: n/a
$ ll /etc/os-release
lrwxrwxrwx 1 root root 21 Jun 30 2024 /etc/os-release -> ../usr/lib/os-release
$ ll /usr/lib/os-release
-rw-r--r-- 1 root root 0 Feb 20 08:42 /usr/lib/os-release
I know the whole point is not using systemd, but surely putting some release information in one of the well known locations would be good. Pretty sure the LSB spec isn't systemd specific.
Is there another distro-specific release information file I don't know about?
Offline
check /var/lib/apt/lists
Offline
Does it have
/etc/debian_versionor
/etc/devuan_version?
Offline
yes, it should have both.
Offline
Yes:
$ cat /etc/debian_version
12.6
$ cat /etc/devuan_version
daedalusNo obvious peppermint_version file in /etc though.
But then, one has to remember that one is running devuan to know to check for devuan_version. So if I wanted a generic command to show me release information, it could become a script full of conditional checks like:
[ -s "/etc/redhat-release" ] && cat /etc/redhat-release
[ -s "/etc/arch-release" ] && cat /etc/arch-release
[ -s "/etc/debian_version" ] && cat /etc/debian_version
[ -s "/etc/devuan_version" ] && cat /etc/devuan_versionor, we could populate the /etc/os-release file, and not need a script. Some of those other tools I mentioned might even be able to find the information too.
Offline
You could run ls -l /etc/*version and ls -l /etc/*release to see what files exist. As well as uname -a
Offline
Looks like I'm running Debian something:
$ uname -a
Linux hp845g8 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 GNU/LinuxI can make scripts:
#!/usr/bin/env bash
shopt -s nullglob
for file in /etc/*version /etc/*release; do
echo "$file:"
cat "$file"
done$ ./checkRelease
/etc/debian_version:
12.6
/etc/devuan_version:
daedalus
/etc/os-release:But, do we need to code-golf this? Or can we just put some data in the os-release file?
Offline