How To Install virt-who on CentOS 8
Introduction
In this tutorial we learn how to install virt-who
on CentOS 8.
What is virt-who
Agent that collects information about virtual guests present in the system and report them to the subscription manager.
We can use yum
or dnf
to install virt-who
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install virt-who.
Install virt-who on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install virt-who
using dnf
by running the following command:
sudo dnf -y install virt-who
Install virt-who on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install virt-who
using yum
by running the following command:
sudo yum -y install virt-who
How To Uninstall virt-who on CentOS 8
To uninstall only the virt-who
package we can use the following command:
sudo dnf remove virt-who
virt-who Package Contents on CentOS 8
/etc/sysconfig/virt-who
/etc/virt-who.conf
/etc/virt-who.d
/etc/virt-who.d/template.conf
/usr/bin/virt-who
/usr/bin/virt-who-password
/usr/lib/python3.6/site-packages/virt_who-1.30.5-py3.6.egg-info
/usr/lib/python3.6/site-packages/virt_who-1.30.5-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/virt_who-1.30.5-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/virt_who-1.30.5-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/virt_who-1.30.5-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/virt_who-1.30.5-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/virtwho
/usr/lib/python3.6/site-packages/virtwho/__init__.py
/usr/lib/python3.6/site-packages/virtwho/__main__.py
/usr/lib/python3.6/site-packages/virtwho/__pycache__
/usr/lib/python3.6/site-packages/virtwho/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/datastore.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/datastore.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/executor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/executor.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/log.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/log.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/main.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/main.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/config.py
/usr/lib/python3.6/site-packages/virtwho/daemon
/usr/lib/python3.6/site-packages/virtwho/daemon/__init__.py
/usr/lib/python3.6/site-packages/virtwho/daemon/__pycache__
/usr/lib/python3.6/site-packages/virtwho/daemon/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/daemon/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/daemon/__pycache__/daemon.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/daemon/__pycache__/daemon.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/daemon/daemon.py
/usr/lib/python3.6/site-packages/virtwho/datastore.py
/usr/lib/python3.6/site-packages/virtwho/executor.py
/usr/lib/python3.6/site-packages/virtwho/log.py
/usr/lib/python3.6/site-packages/virtwho/main.py
/usr/lib/python3.6/site-packages/virtwho/manager
/usr/lib/python3.6/site-packages/virtwho/manager/__init__.py
/usr/lib/python3.6/site-packages/virtwho/manager/__pycache__
/usr/lib/python3.6/site-packages/virtwho/manager/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/__pycache__/manager.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/__pycache__/manager.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/manager.py
/usr/lib/python3.6/site-packages/virtwho/manager/satellite
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/__init__.py
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/__pycache__
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/__pycache__/satellite.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/__pycache__/satellite.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/satellite/satellite.py
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/__init__.py
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/__pycache__
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/__pycache__/subscriptionmanager.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/__pycache__/subscriptionmanager.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/manager/subscriptionmanager/subscriptionmanager.py
/usr/lib/python3.6/site-packages/virtwho/parser.py
/usr/lib/python3.6/site-packages/virtwho/password
/usr/lib/python3.6/site-packages/virtwho/password/__init__.py
/usr/lib/python3.6/site-packages/virtwho/password/__main__.py
/usr/lib/python3.6/site-packages/virtwho/password/__pycache__
/usr/lib/python3.6/site-packages/virtwho/password/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/password/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/password/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/password/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/util.py
/usr/lib/python3.6/site-packages/virtwho/version.py
/usr/lib/python3.6/site-packages/virtwho/virt
/usr/lib/python3.6/site-packages/virtwho/virt/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/__pycache__/virt.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/__pycache__/virt.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__/create_minimal_vim.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__/create_minimal_vim.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__/esx.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx/__pycache__/esx.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/esx/create_minimal_vim.py
/usr/lib/python3.6/site-packages/virtwho/virt/esx/esx.py
/usr/lib/python3.6/site-packages/virtwho/virt/esx/vimServiceMinimal.wsdl
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/__pycache__/fakevirt.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/__pycache__/fakevirt.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/fakevirt/fakevirt.py
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__/hyperv.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__/hyperv.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__/ntlm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/__pycache__/ntlm.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/hyperv.py
/usr/lib/python3.6/site-packages/virtwho/virt/hyperv/ntlm.py
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/client.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/client.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/kubevirt.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/__pycache__/kubevirt.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/client.py
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/config.py
/usr/lib/python3.6/site-packages/virtwho/virt/kubevirt/kubevirt.py
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/__pycache__/libvirtd.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/__pycache__/libvirtd.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/libvirtd.py
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/__pycache__/rhevm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/__pycache__/rhevm.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/rhevm/rhevm.py
/usr/lib/python3.6/site-packages/virtwho/virt/virt.py
/usr/lib/python3.6/site-packages/virtwho/virt/xen
/usr/lib/python3.6/site-packages/virtwho/virt/xen/XenAPI.py
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__init__.py
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__/XenAPI.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__/XenAPI.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__/xen.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/xen/__pycache__/xen.cpython-36.pyc
/usr/lib/python3.6/site-packages/virtwho/virt/xen/xen.py
/usr/lib/systemd/system/virt-who.service
/usr/share/doc/virt-who
/usr/share/doc/virt-who/LICENSE
/usr/share/doc/virt-who/README.hyperv
/usr/share/doc/virt-who/README.md
/usr/share/man/man5/virt-who-config.5.gz
/usr/share/man/man8/virt-who-password.8.gz
/usr/share/man/man8/virt-who.8.gz
/usr/share/zsh/site-functions/_virt-who
/var/lib/virt-who
/var/lib/virt-who/key
References
Summary
In this tutorial we learn how to install virt-who
on CentOS 8 using yum and dnf.