How To Install bltk on Fedora 34

bltk is The BLTK measures notebook battery life under any workload

Introduction

In this tutorial we learn how to install bltk on Fedora 34.

What is bltk

This tool kit is used to measure battery life and performance under different workloads on Linux. Test can be used with various workloads to simulate different types of laptop usage. The following workloads are currently implemented a) Idle workload - collect statistics only b) Developer workload - simulates code development in Linux environment c) Reader workload - simulates text reading on laptop d) DVD playback workload - simulates laptop entertaining usage e) 3d game workload - simulates 3D-gaming on laptop f) Office Activity workload - simulates laptop usage for different office activities (based on OpenOffice.org office suit)

We can use yum or dnf to install bltk on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install bltk.

Install bltk on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install bltk using dnf by running the following command:

sudo dnf -y install bltk

Install bltk on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install bltk using yum by running the following command:

sudo yum -y install bltk

How To Uninstall bltk on Fedora 34

To uninstall only the bltk package we can use the following command:

sudo dnf remove bltk

bltk Package Contents on Fedora 34

/etc/bltk.conf
/usr/bin/bltk
/usr/bin/bltk_plot
/usr/bin/bltk_report
/usr/bin/bltk_report_compress
/usr/bin/bltk_report_table
/usr/bin/bltk_report_uncompress
/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/7737257829be26b01ce1a600aa944d6457d0fb
/usr/lib/.build-id/38
/usr/lib/.build-id/38/f8d968c3adc2b050922f87219fcbe04a1828f6
/usr/lib/.build-id/49
/usr/lib/.build-id/49/a9571db52cd3e3a8c73b25015bff21494872d0
/usr/lib/.build-id/55
/usr/lib/.build-id/55/46d7a4f9d41fff5c548ef14a22ce82fabf3087
/usr/lib/.build-id/61
/usr/lib/.build-id/61/712a4bd54ffc65e1cae2f476e830be7acf1832
/usr/lib/.build-id/65
/usr/lib/.build-id/65/7a2e6356c3a6b3c5153cca6c3a0c184c0549ec
/usr/lib/.build-id/67
/usr/lib/.build-id/67/04c4a9f7b194c5d14f161fd7623a7f79a1582c
/usr/lib/.build-id/70
/usr/lib/.build-id/70/62a6e8061fd674d73b8d6afc7eaf9f9e1ef22a
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/3b66dcd28ad4202736ff1972cc46ad100f1264
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/85d6a82af6fb867706d86920a5423c7c9f2ecf
/usr/lib64/bltk/bin/bat_drain
/usr/lib64/bltk/bin/bat_drain_table
/usr/lib64/bltk/bin/bltk
/usr/lib64/bltk/bin/bltk_calc
/usr/lib64/bltk/bin/bltk_check
/usr/lib64/bltk/bin/bltk_display_state
/usr/lib64/bltk/bin/bltk_func
/usr/lib64/bltk/bin/bltk_get_ac_adapter
/usr/lib64/bltk/bin/bltk_get_bat
/usr/lib64/bltk/bin/bltk_get_cpufreq
/usr/lib64/bltk/bin/bltk_get_cpuinfo
/usr/lib64/bltk/bin/bltk_get_cpustat
/usr/lib64/bltk/bin/bltk_get_cpustate
/usr/lib64/bltk/bin/bltk_get_dmidecode
/usr/lib64/bltk/bin/bltk_get_hd_rpm
/usr/lib64/bltk/bin/bltk_get_hdparm
/usr/lib64/bltk/bin/bltk_get_info
/usr/lib64/bltk/bin/bltk_get_kernel_release
/usr/lib64/bltk/bin/bltk_get_lspci
/usr/lib64/bltk/bin/bltk_get_meminfo
/usr/lib64/bltk/bin/bltk_get_realpath
/usr/lib64/bltk/bin/bltk_get_stat
/usr/lib64/bltk/bin/bltk_get_system_release
/usr/lib64/bltk/bin/bltk_get_timer
/usr/lib64/bltk/bin/bltk_get_user_field
/usr/lib64/bltk/bin/bltk_get_xdpyinfo
/usr/lib64/bltk/bin/bltk_install
/usr/lib64/bltk/bin/bltk_plot
/usr/lib64/bltk/bin/bltk_report
/usr/lib64/bltk/bin/bltk_report_check
/usr/lib64/bltk/bin/bltk_report_compress
/usr/lib64/bltk/bin/bltk_report_table
/usr/lib64/bltk/bin/bltk_report_uncompress
/usr/lib64/bltk/bin/bltk_save_sys_info
/usr/lib64/bltk/bin/bltk_spy
/usr/lib64/bltk/bin/bltk_time
/usr/lib64/bltk/bin/bltk_type_command
/usr/lib64/bltk/bin/bltk_winid
/usr/lib64/bltk/bin/bltk_wl_common
/usr/lib64/bltk/lib/libxse.so.0
/usr/lib64/bltk/wl_developer/bin/bltk_wl_developer
/usr/lib64/bltk/wl_developer/bin/bltk_wl_developer_spy
/usr/lib64/bltk/wl_developer/bin/bltk_wl_developer_xse
/usr/lib64/bltk/wl_game/bin/bltk_wl_game
/usr/lib64/bltk/wl_game/bin/bltk_wl_game_xse
/usr/lib64/bltk/wl_office/OOCALC_FILE_SAMPLE.ods
/usr/lib64/bltk/wl_office/OODRAW_FILE_SAMPLE.odg
/usr/lib64/bltk/wl_office/OOWRITER_FILE_SAMPLE.odt
/usr/lib64/bltk/wl_office/bin/bltk_wl_office
/usr/lib64/bltk/wl_office/bin/bltk_wl_office_run_app
/usr/lib64/bltk/wl_office/bin/bltk_wl_office_xse
/usr/lib64/bltk/wl_office/response_install
/usr/lib64/bltk/wl_office/scen
/usr/lib64/bltk/wl_office/scen_install
/usr/lib64/bltk/wl_office/text1
/usr/lib64/bltk/wl_office/text2
/usr/lib64/bltk/wl_office/text3
/usr/lib64/bltk/wl_player/bin/bltk_wl_player
/usr/lib64/bltk/wl_player/bin/bltk_wl_player_make_binary
/usr/lib64/bltk/wl_reader/bin/bltk_wl_reader
/usr/lib64/bltk/wl_reader/bin/bltk_wl_reader_xse
/usr/lib64/bltk/wl_reader/war_and_peace.html
/usr/share/doc/bltk
/usr/share/doc/bltk/HOWTO
/usr/share/doc/bltk/Manual
/usr/share/doc/bltk/README
/usr/share/man/man1/bltk.1.gz
/usr/share/man/man1/bltk_report.1.gz
/usr/share/man/man5/bltk.conf.5.gz

References

Summary

In this tutorial we learn how to install bltk on Fedora 34 using yum and dnf.