How to install Python hwinfo in Ubuntu 16.04
To install in Ubuntu 16.04
Python hwinfo is a python library for inspecting hardware and devices by parsing the outputs of system utilities such as lspci and dmidecode. It’ s Additionally you can execute this on remote server by providing a Server IP or Host name, username, and password. Also, you can use this tool to view other utilities captured outputs like demidecode as ‘ dmidecode.out’ , /proc/cpuinfo as ‘ cpuinfo’ , lspci -nnm as ‘ lspci-nnm.out’ , etc,.
It can be installed through pip package to all major Linux distributions. In order to install python-hwinfo but make sure your system has python and python-pip packages as a prerequisite
Installing python hwinfo
First, you need to update the system by making use of the following command.
root@localhost:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
.
.
Fetched 4,216 kB in 7s (595 kB/s)
Reading package lists... Done
Once it is done, you need to installing python-pip package.
root@localhost:~# apt-get install python-pip
Reading package lists... Done
.
.
Setting up python-wheel (0.29.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
You shall now install Python hwinfo package by making use of the following command.
root@localhost:~# pip install python-hwinfo
Collecting python-hwinfo
.
.
Successfully installed asn1crypto-0.24.0 bcrypt-3.1.4 cffi-1.11.4 cryptography-2.1.4 enum34-1.1.6 idna-2.6 ipaddress-1.0.19 paramiko-2.4.0 prettytable-0.7.2 pyasn1-0.4.2 pycparser-2.18 pynacl-1.2.1 python-hwinfo-0.1.6 six-1.11.0
Now that Python hwinfo has been installed you shall launch it by making use of the following command.
root@localhost:~# hwinfo
With this, the tutorial comes to an end.
Comments ( 0 )
No comments available