yum install rpm-build -y yum install rpmdevtools -y 启动:rpmdev-setuptree rpmbuild -ba *.spec:编译spec文件 rpm -i *.src.rpm:解压rpm文件