编译安装kernel的网卡驱动打成rpm 包
安装yum源
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
安装kernel
# yum --enablerepo=elrepo-kernelinstall -y kernel-lt kernel-lt-devel
# reboot
# tar -xzvf i40e-2.12.6.tar.gz
# cd i40e-2.12.6/
# ls -ltr
total 136
-rw-r--r--. 1 root root 7268Jul 1 12:31 pci.updates
-rw-r--r--. 1 root root 82857Jul 1 12:31 README
-rw-r--r--. 1 root root 9345Jul 1 12:31 i40e.spec
-rw-r--r--. 1 root root 3369Jul 1 12:31 i40e.7
-rw-r--r--. 1 root root 17816Jul 1 12:31 COPYING
drwxr-xr-x. 2 root root 4096Jul 1 12:31 src
drwxr-xr-x. 2 rootroot 74 Jul 1 12:31 scripts
-rw-r--r--. 1 root root 2258Jul 1 12:32 SUMS
#cp i40e-2.12.6.tar.gz /root/rpmbuild/SOURCES/
# rpmbuild -ba i40e.spec
# cd
# ls
anaconda-ks.cfg baidunetdiskdownload Documents initial-setup-ks.cfg Pictures rpmbuild Videos
baidunetdisk Desktop Downloads Music Public Templates
# cd rpmbuild/
# cd RPMS/x86_64/
# ls -ltr
total 1740
-rw-r--r--. 1 root root 1778740 Sep10 14:41 i40e-2.12.6-1.x86_64.rpm
# rpm -ivh i40e-2.12.6-1.x86_64.rpm
2021-01-15
最新推荐文章于 2024-04-26 19:45:32 发布