lpereira / hardinfo

System profiler and benchmark tool for Linux systems
http://hardinfo.org
GNU General Public License v2.0
759 stars 133 forks source link

Hardinfo doesn't find software in /opt #701

Open SKelem opened 9 months ago

SKelem commented 9 months ago

A lot of software lives in /opt, particularly java:

├── docs
├── jdbc
├── jdk
├── jni
├── jre
├── junit
└── slf4j

The jdk looks like:

├── jdk-17.0.1
│   ├── bin
│   ├── conf
│   ├── include
│   ├── jmods
│   ├── legal
│   ├── lib
│   ├── LICENSE -> legal/java.base/LICENSE
│   ├── man
│   └── release
├── jdk-20.0.1
│   ├── bin
│   ├── conf
│   ├── include
│   ├── jmods
│   ├── legal
│   ├── lib
│   ├── LICENSE -> legal/java.base/LICENSE
│   ├── man
│   ├── README
│   └── release
├── latest -> jdk-17.0.1
└── old
    ├── jdk-12.0.2
    ├── jdk-16.0.2
    ├── jdk1.8.0_102
    ├── jdk1.8.0_144
    └── jdk1.8.0_191

Is there a way to get hardinfo to look in /opt?

lpereira commented 9 months ago

As long as binaries are in path (e.g. $PATH contains /opt/latest/bin in your case), HardInfo should be able to find things.