libvirt7源码编译rpm

注1:平台是centos8 x86_64,本来是想编译libvirt9的,但是libvirt8及以上需要meson版本不小于 5.6 ,目前没发现合适的升级方法(libvirt编译时不识别pip安装的meson,尽管pip3安装的meson已经达到要求了)

 rpm -ivh https://download.libvirt.org/libvirt-7.10.0-1.src.rpm

启用powertools源

yum install dnf-plugins-core epel-release -y
dnf config-manager --set-enabled powertools -y

检查编译路径与依赖

grep -iE 'BuildRequires|Require|BuildRoot' libvirt.spec

 

缺啥包下载啥包

grep  BuildRequires SPECS/libvirt.spec |grep -v 36|awk '{print $2}'|xargs -i yum -y install {}

 

 rpmbuild -bb rpmbuild/SPECS/libvirt.spec 2> tmp.txt;awk '{print $1}' tmp.txt |grep -v ':'|xargs -i yum -y install {}

 

最后生成了一堆rpm包

[root@santiagod ~]# ls rpmbuild/RPMS/x86_64/
libvirt-7.10.0-1.el8.x86_64.rpm
libvirt-client-7.10.0-1.el8.x86_64.rpm
libvirt-client-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-config-network-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-config-nwfilter-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-interface-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-interface-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-network-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-network-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-nodedev-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-nodedev-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-nwfilter-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-nwfilter-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-qemu-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-qemu-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-secret-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-secret-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-core-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-core-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-disk-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-disk-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-gluster-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-gluster-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-iscsi-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-iscsi-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-iscsi-direct-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-iscsi-direct-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-logical-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-logical-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-mpath-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-mpath-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-rbd-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-rbd-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-scsi-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-driver-storage-scsi-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-daemon-kvm-7.10.0-1.el8.x86_64.rpm
libvirt-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-debugsource-7.10.0-1.el8.x86_64.rpm
libvirt-devel-7.10.0-1.el8.x86_64.rpm
libvirt-docs-7.10.0-1.el8.x86_64.rpm
libvirt-libs-7.10.0-1.el8.x86_64.rpm
libvirt-libs-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-lock-sanlock-7.10.0-1.el8.x86_64.rpm
libvirt-lock-sanlock-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-nss-7.10.0-1.el8.x86_64.rpm
libvirt-nss-debuginfo-7.10.0-1.el8.x86_64.rpm
libvirt-wireshark-7.10.0-1.el8.x86_64.rpm
libvirt-wireshark-debuginfo-7.10.0-1.el8.x86_64.rpm

 

posted @ 2023-03-30 20:03  咿呀哒喏  阅读(301)  评论(0编辑  收藏  举报