<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Michal,</p>
    <p><br>
    </p>
    <p>Many thanks for the sharing! <br>
    </p>
    <p>That sounds a good way to my situation, i actually want to
      upgrade the libvirt on several RHEL 8 compute nodes of an
      OpenStack deployment.   <br>
    </p>
    <p>I setup CentOS env for verification before the actual upgrade.</p>
    <p><br>
    </p>
    <p>But following your instruction, i have two questions here, would
      you kindly share more details with the processes? <br>
    </p>
    <p>1) Assume i want to upgrade to version 6.1.0, which one of the
      src.rpms should i use? all the three have same effects for
      installing the dependent packages?<br>
    </p>
    <table width="50%" cellspacing="2" cellpadding="2" border="1">
      <tbody>
        <tr>
          <td valign="top">
            <table style="font-family: Times; letter-spacing: normal;
              orphans: 2; text-indent: 0px; text-transform: none;
              widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
              0px; text-decoration-style: initial;
              text-decoration-color: initial;">
              <tbody>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/unknown.gif" alt="[
                      ]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-0rc1.fc30.src.rpm">libvirt-6.1.0-0rc1.fc30.src.rpm</a></td>
                  <td align="right">26-Feb-2020 13:04</td>
                  <td align="right">7.9M</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/unknown.gif" alt="[
                      ]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-0rc2.fc30.src.rpm">libvirt-6.1.0-0rc2.fc30.src.rpm</a></td>
                  <td align="right">29-Feb-2020 09:26</td>
                  <td align="right">7.9M</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/unknown.gif" alt="[
                      ]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-1.fc30.src.rpm">libvirt-6.1.0-1.fc30.src.rpm</a></td>
                  <td align="right">03-Mar-2020 14:11</td>
                  <td align="right">7.9M</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/unknown.gif" alt="[
                      ]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-rc1.tar.xz">libvirt-6.1.0-rc1.tar.xz</a></td>
                  <td align="right">26-Feb-2020 10:52</td>
                  <td align="right">7.9M</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/text.gif"
                      alt="[TXT]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-rc1.tar.xz.asc">libvirt-6.1.0-rc1.tar.xz.asc</a></td>
                  <td align="right">26-Feb-2020 13:04</td>
                  <td align="right">488</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/unknown.gif" alt="[
                      ]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-rc2.tar.xz">libvirt-6.1.0-rc2.tar.xz</a></td>
                  <td align="right">29-Feb-2020 09:25</td>
                  <td align="right">7.9M</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/text.gif"
                      alt="[TXT]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0-rc2.tar.xz.asc">libvirt-6.1.0-rc2.tar.xz.asc</a></td>
                  <td align="right">29-Feb-2020 09:26</td>
                  <td align="right">488</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/unknown.gif" alt="[
                      ]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0.tar.xz">libvirt-6.1.0.tar.xz</a></td>
                  <td align="right">03-Mar-2020 14:11</td>
                  <td align="right">7.9M</td>
                  <td> </td>
                </tr>
                <tr>
                  <td valign="top"><img
                      src="https://libvirt.org/icons/text.gif"
                      alt="[TXT]"></td>
                  <td><a
                      href="https://libvirt.org/sources/libvirt-6.1.0.tar.xz.asc">libvirt-6.1.0.tar.xz.asc</a></td>
                </tr>
              </tbody>
            </table>
          </td>
        </tr>
      </tbody>
    </table>
    <p><br>
    </p>
    <p>2) if then i download the libvirt-6.1.0.tar.xz for making the
      rpm, do i need to write  a spec file on my own for the rpmbuild
      tool to work?<br>
    </p>
    <p><br>
    </p>
    <p>Yes, you are right! I made mistake for the version number.<br>
    </p>
    <p>Below check is from my newly installed CentOS 8 env, you can see
      when i choose the "Server with GUI" environment groups, the
      libvirt was bundle installed. <br>
    </p>
    <table width="830" height="437" cellspacing="2" cellpadding="2"
      border="1">
      <tbody>
        <tr>
          <td valign="top">[root@centos8b ~]# <br>
            [root@centos8b ~]# which libvirtd<br>
            /usr/sbin/libvirtd<br>
            [root@centos8b ~]# libvirtd --version<br>
            libvirtd (libvirt) 4.5.0<br>
            [root@centos8b ~]# <br>
            [root@centos8b ~]# rpm -qa | grep libvirt<br>
libvirt-daemon-config-network-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-disk-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-kvm-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-nwfilter-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-logical-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
            libvirt-gconfig-2.0.0-1.el8.x86_64<br>
            libvirt-daemon-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-nodedev-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
            libvirt-gobject-2.0.0-1.el8.x86_64<br>
libvirt-daemon-driver-storage-core-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-iscsi-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-scsi-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
            libvirt-libs-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-interface-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
            libvirt-glib-2.0.0-1.el8.x86_64<br>
libvirt-daemon-driver-storage-gluster-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-rbd-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-secret-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-mpath-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-network-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-qemu-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
libvirt-daemon-driver-storage-4.5.0-35.module_el8.1.0+248+298dec18.x86_64<br>
            [root@centos8b ~]# <br>
            [root@centos8b yum.repos.d]# <br>
            [root@centos8b yum.repos.d]# yum repolist        <br>
            CentOS-8 -
PowerTools                                                                                                 
            202 kB/s | 2.0 MB     00:10    <br>
            Last metadata expiration check: 0:00:01 ago on Tue 31 Mar
            2020 10:37:14 PM CST.<br>
            repo
            id                                                           
            repo
            name                                                                    
            status<br>
AppStream                                                         
            CentOS-8 -
            AppStream                                                         
            5,123<br>
BaseOS                                                            
            CentOS-8 -
            Base                                                              
            2,126<br>
PowerTools                                                        
            CentOS-8 -
            PowerTools                                                        
            1,525<br>
extras                                                            
            CentOS-8 -
            Extras                                                               
            10<br>
            [root@centos8b yum.repos.d]# yum grouplist<br>
            Last metadata expiration check: 0:00:13 ago on Tue 31 Mar
            2020 10:37:14 PM CST.<br>
            Available Environment Groups:<br>
               Server<br>
               Minimal Install<br>
               Workstation<br>
               Virtualization Host<br>
               Custom Operating System<br>
            Installed Environment Groups:<br>
               Server with GUI<br>
            Installed Groups:<br>
               Container Management<br>
               Headless Management<br>
            Available Groups:<br>
               .NET Core Development<br>
               RPM Development Tools<br>
               Development Tools<br>
               Graphical Administration Tools<br>
               Legacy UNIX Compatibility<br>
               Network Servers<br>
               Scientific Support<br>
               Security Tools<br>
               Smart Card Support<br>
               System Tools<br>
            [root@centos8b yum.repos.d]# <br>
          </td>
        </tr>
      </tbody>
    </table>
    <p><br>
    </p>
    <p>Cheers FuLong<br>
    </p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
FuLong Wang
<a class="moz-txt-link-abbreviated" href="mailto:fulong.wang@cn.ibm.com">fulong.wang@cn.ibm.com</a>
IBM China Systems Lab, Beijing, China
_______________________________________________</pre>
    <div class="moz-cite-prefix">On 3/31/20 21:21, Michal Prívozník
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c78c4e16-08e2-54af-995d-a6f252396e2e@redhat.com">
      <pre class="moz-quote-pre" wrap="">On 31. 3. 2020 8:21, FuLong Wang wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hello Experts,


Is it possible to perform an in-place upgrade for libvirt.

Assume, i have a CentOS 8 installation (choose server with GUI) with
libvirt version 4.5.1 and i want to upgrade the libvirt to version
6.0.0, how to implement a perfect replacement for all the related files
(libraries, header files, etc)?

Does anybody here has the experience for this?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
The way I usually go about this is:

1) download the .src.rpm for the libvirt package
2) yum-builddep libvirt.src.rpm

This installs all the build deps of libvirt. Then just download the
libvirt.tar.xz you want (or checkout the tag in the repo) and 'make
rpm'. Note, this will not contain RHEL-only patches. That is more
advanced topic.


BTW: I don't think I've seen 4.5.1 in CentOS, where did you get it from?

Michal

</pre>
    </blockquote>
  </body>
</html>