Skip to content

Instantly share code, notes, and snippets.

@sxiii
Last active March 2, 2024 03:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sxiii/d9398a1acf25672b3946850425817c9c to your computer and use it in GitHub Desktop.
Save sxiii/d9398a1acf25672b3946850425817c9c to your computer and use it in GitHub Desktop.
Install HardInfo on Fedora/CentOS Linux

For some reason, the Fedora team decided to stop packaging Hardinfo in the repositories, so you’ll need to build it from sources as shown..

sudo dnf install glib-devel gtk+-devel zlib-devel libsoup-devel json-glib-devel gtk2-devel cmake
cd Downloads
git clone https://github.com/lpereira/hardinfo.git
cd hardinfo
mkdir build
cd build
cmake ..
make
sudo make install
@bierbo
Copy link

bierbo commented Dec 31, 2021

I suggest including the package cmake in the dnf command, otherwise it will not be installed.

@sxiii
Copy link
Author

sxiii commented Jan 3, 2022

Thanks @bierbo - included it. I guess I had it just installed by default and didn't bothered to check all the deps via scripts :)

@Ivortorabolocov
Copy link

Just had probs building this, but got it working eventually

You need to have a different package installed (Fedora 36 here) as referenced on this page - https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/thread/KWROF2KFNOX7BPN5LUS2DJINUMRMPJB7/

It's the gcc-c++ package that made all the difference for me. Hope it helps someone out.

Cheers

1vor

@nsurvance
Copy link

It's the gcc-c++ package that made all the difference for me. Hope it helps someone out.

I wanted to second this!

@hwspeedy
Copy link

hwspeedy commented Mar 2, 2024

Fedora stopped distributing the hardinfo as it was not maintained.

We have rebooted the project as a community edition hardinfo2 - see/join the github project:
https://github.com/hardinfo2/hardinfo2

There are also binary packages for the most used distros - see:
https://hardinfo2.org/github/?latest_prerelease

Homepage with pictures and more:
https://hardinfo2.org

Hope to be back in all distros - there is no other program like hardinfo2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment