We are now a github organisation. You are invited to participate.
... still in progress ...
Stable (Maven Central Repository, Released: 26.11.2024 - wait 24hrs for maven central)
<dependency>
<groupId>de.flapdoodle</groupId>
<artifactId>de.flapdoodle.os</artifactId>
<version>1.9.0</version>
</dependency>
Detect system platform with this call:
Platform result = Platform.detect(CommonOS.list());
and inspect the result which may give 'Linux' for os, 'X86' for cpu type, 'B64' for bit size, 'Ubuntu' for distribution and 'Ubuntu_22_04' for version.
You can set system property de.flapdoodle.os.explain=true
and enable logging for
package de.flapdoodle.os.common.attributes
to get some debugging output.
You can override platform detection with system property de.flapdoodle.os.override=<platform>
where
platform
contains the os, architecture, distribution and version (optional).
Sample value for macOs on x86 with 64bit: OS_X|X86_64
, Centos7 on 32bit x86: Linux|X86_32|CentOS|CentOS_7
.
You should NOT use quotes, so de.flapdoodle.os.override=OS_X|X86__64
.
- ubuntu up to 25.10
- manjaro linux 24.0, 24.1
- arch linux rolling
- manjaro linux support
- kde neon 6.x support
- linux mint 22.x support
- check for amazon version priority
- amazon detection fix
- alpine linux detection
- rocky linux support
- ubuntu 24.04
- alma linux support
- plugin updates
- fedora 39, 40, 41
- debian 12, 13
- pop os support, enum ordering
- linux mint 21.2 and fedora 38
- better amazon2 detection
- amazon 2023 support
- ubuntu 23.x support
- api extracted to de.flapdoodle.os-api
- mint 21.1
- detect debian 12
- detect oracle9, centos9
- detect ubuntu 22.10, bugfix
- api change
- return best version if more than one match
- detect linux mint 21
- detect ubuntu 16.04/16.10
- override with system property
- print detection result on explain
- detect ubuntu 22.04
- detect debian 11
- detect ubuntu 21.10
- detect redhat 6,7,8
- detect oracle 6,7,8