removing virsh

General support questions
Post Reply
MikeBerger
Posts: 18
Joined: 2019/01/02 23:28:04

removing virsh

Post by MikeBerger » 2019/01/14 16:43:23

In planning to remove NetworkManager, I came across virsh, which I think I do not need.
So I thinking of:

Code: Select all

virsh net-destroy default
virsh net-undefine default
systemctl stop libvirtd
systemctl disable libvirtd
yum remove "*virt"* "*virsh*"
Is this ok? Including the yum remove ...?

Thanks,
Mike.

User avatar
TrevorH
Forum Moderator
Posts: 24775
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: removing virsh

Post by TrevorH » 2019/01/14 16:47:33

It's almost certainly installed as a result of gnome-boxes being part of the default GUI software group. That pulls in libvirt et al.

There's no package specifically for virsh, it's supplied by libvirt-client so that's the package name you need to get shot of.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

MikeBerger
Posts: 18
Joined: 2019/01/02 23:28:04

Re: removing virsh

Post by MikeBerger » 2019/01/14 17:02:20

So I did:

Code: Select all

yum remove libvirt-client
but

Code: Select all

yum list installed "*virt"* "*virsh*"
still returns 36 lines, most of which start with "libvirt".

User avatar
TrevorH
Forum Moderator
Posts: 24775
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: removing virsh

Post by TrevorH » 2019/01/14 17:08:41

If you have no need for virtualisation then you can probably get shot of those too.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

MikeBerger
Posts: 18
Joined: 2019/01/02 23:28:04

Re: removing virsh

Post by MikeBerger » 2019/01/14 17:49:50

I did it and lost my K3B, which I reinstalled and got almost as many packages as I had deleted.

Post Reply