How to install i7z on Ubuntu 17.04

How to install i7z on Ubuntu 17.04

The i7z is a tool that reports the Intel Core i7, i5 and i3 CPU information about Turbo boost, per CPU frequencies, multipliers, temperature as well as the times spent in the C-state in real time. This tutorial explains the installation procedure of i7z on Ubuntu 17.04.

Installation procedure

To begin with the installation process, add the repo by executing the following command in the target system.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
gpg: keybox ' /tmp/tmp5dz6r_wu/pubring.gpg'  created
gpg: /tmp/tmp5dz6r_wu/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:imported: 1
OK

The repositories are added to the target system. Now update the repositories by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Get:3 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB
Get:5 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [3,924 B]
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [3,916 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [3,140 B]
Hit:8 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Fetched 205 kB in 2s (83.1 kB/s)
Reading package lists... Done

The target system is updated with the required repositories. Install the i7z package and press y to continue with the installation.

root@linuxhelp1:~# apt-get install i7z -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  fonts-lato javascript-common libjs-jquery libruby2.3 msr-tools rake ruby ruby-did-you-mean ruby-minitest ruby-net-telnet
  ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
Suggested packages:
  apache2 | lighttpd | httpd ri ruby-dev bundler
The following NEW packages will be installed:
  fonts-lato i7z javascript-common libjs-jquery libruby2.3 msr-tools rake ruby ruby-did-you-mean ruby-minitest ruby-net-telnet
  ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
0 upgraded, 15 newly installed, 0 to remove and 63 not upgraded.
Need to get 6,069 kB of archives.
After this operation, 27.6 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 fonts-lato all 2.0-1 [2,693 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 javascript-common all 11 [6,066 B]                                      
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 libjs-jquery all 3.1.1-2 [151 kB]                                       
Get:4 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 msr-tools amd64 1.3-2 [10.6 kB]                                         
Get:5 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 rubygems-integration all 1.11 [4,994 B]                                 
Get:6 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby-did-you-mean all 1.0.0-2 [8,390 B]                                 
Get:7 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby-minitest all 5.9.0-1 [37.0 kB]                                     
Get:8 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby-net-telnet all 0.1.1-2 [12.6 kB]                                   
Get:9 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby-power-assert all 0.3.0-1 [7,952 B]                                  
Get:10 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby-test-unit all 3.1.7-2 [60.3 kB]                                   
Get:11 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 libruby2.3 amd64 2.3.3-1 [2,954 kB]                                     
Get:12 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby2.3 amd64 2.3.3-1 [40.9 kB]                                        
Get:13 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 ruby amd64 1:2.3.3 [5,636 B]                                            
Get:14 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 rake all 10.5.0-2 [48.2 kB]                                            
Get:15 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 i7z amd64 0.27.2+git2013.10.12-g5023138-3 [28.4 kB]                
Fetched 6,069 kB in 33s (181 kB/s)                                                                                                 
Selecting previously unselected package fonts-lato.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../00-fonts-lato_2.0-1_all.deb ...
Unpacking fonts-lato (2.0-1) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../01-javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../02-libjs-jquery_3.1.1-2_all.deb ...
Unpacking libjs-jquery (3.1.1-2) ...
Selecting previously unselected package msr-tools.
Preparing to unpack .../03-msr-tools_1.3-2_amd64.deb ...
.
.
.
.
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Setting up ruby-net-telnet (0.1.1-2) ...
Setting up rubygems-integration (1.11) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up javascript-common (11) ...
Setting up ruby-minitest (5.9.0-1) ...
Processing triggers for fontconfig (2.11.94-0ubuntu2) ...
Setting up ruby-power-assert (0.3.0-1) ...
Setting up ruby-test-unit (3.1.7-2) ...
Setting up rake (10.5.0-2) ...
Setting up libruby2.3:amd64 (2.3.3-1) ...
Setting up ruby2.3 (2.3.3-1) ...
Setting up ruby (1:2.3.3) ...
Setting up i7z (0.27.2+git2013.10.12-g5023138-3) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...

The package has been successfully installed. To use the package and to know more about the options used in i7z, type the following help command and execute it.

root@linuxhelp1:~# i7z --help
i7z Tool Supports the following functions:
Append to a log file:  ./i7z --write a [OR] ./i7z -w a
Replacement instead of Append:  ./i7z --write l [OR] ./i7z -w l
Default log file name is cpu_freq_log.txt (single socket) or cpu_freq_log_dual_%d.txt (dual socket)
Specifying a different log file: ./i7z --logfile filename [OR] ./i7z -l filename
Specifying a particular socket to print: ./i7z --socket0 X
In order to print to a second socket use: ./i7z --socket1 X
To turn the ncurses GUI off use: ./i7z --nogui
Example: To print for two sockets and also change the log file ./i7z --socket0 0 --socket1 1 -logfile /tmp/logfilei7z -w l
Quitting i7z

For removing the package, run the apt-get remove command and press y to continue with the uninstallation to remove all of i7z pacakge and its repositories.

root@linuxhelp1:~# apt-get remove i7z -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-lato javascript-common libjs-jquery libruby2.3 msr-tools rake ruby ruby-did-you-mean ruby-minitest ruby-net-telnet
  ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
Use ' apt autoremove'  to remove them.
The following packages will be REMOVED:
  i7z
0 upgraded, 0 newly installed, 1 to remove and 63 not upgraded.
After this operation, 90.1 kB disk space will be freed.
(Reading database ... 170113 files and directories currently installed.)
Removing i7z (0.27.2+git2013.10.12-g5023138-3) ...
Processing triggers for man-db (2.7.6.1-2) ...

Wasn' t that an easy installation procedure? The i7z also supports outputing the results to a log file.

FAQ
Q
how to uninstall the i7z application in ubuntu?
A
For removing the package, run the apt-get remove command
# apt-get remove i7z -y
Q
How to add repo for the i7z in ubuntu?
A
add the repo by executing the following command in the target system
# add-apt-repository ppa:eugenesan/ppa
Q
how to check the available options for i7z?
A
See them under i7z --help "Specifying a particular socket to print: ./i7z --socket0 X"
Q
what was its essential usage of i7z?
A
The i7z is a tool that reports the Intel Core i7, i5 and i3 CPU information about Turbo boost, per CPU frequencies, multipliers, temperature as well as the times spent in the C-state in real
Q
How to Append to file for i7z?
A
Append to file for i7z by following command
./i7z --write a