
Many Thanks Daniel, Your instructions perfectly works for my build on CentOS and RHEL distro! Cheers FuLong -- FuLong Wang fulong.wang@cn.ibm.com IBM China Systems Lab, Beijing, China _______________________________________________ On 4/2/20 16:41, Daniel P. Berrangé wrote:
On Thu, Apr 02, 2020 at 08:47:30AM +0800, FuLong Wang wrote:
Hello Experts,
Do we have libvirt source rpms (version above 5.9.0) for CentOS or RHEL?
I only find source rpms for fedora in below public link.
https://libvirt.org/sources/ Please ignore all the RPMs you see there, they really shouldn't be used.
The source tarballs (eg libvirt-5.9.0.tar.xz) contain a spec file inside.
This means you can generate RPMs for your precise distro using something akin to the following commands:
$ rpmbuild -ts libvirt-5.9.0.tar.xz $ sudo dnf install redhat-rpm-config $ sudo dnf builddep $HOME/rpmbuild/SRPMS/libvirt-5.9.0-1.fc31.src.rpm $ rpmbuild --rebuild $HOME/rpmbuild/SRPMS/libvirt-5.9.0-1.fc31.src.rpm
Regards, Daniel