rpm打包
Posted ray-mmss
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rpm打包相关的知识,希望对你有一定的参考价值。
1.yum -y install rpm-build
2.rpmbuild -ba xx.spec
3.cp source_package /root/rpmbuild/SOURCES/
4.vim /root/rpmbuild/SPECS/nginx.spec
Name: nginx Version: 1.12.2 Release: 10 Summary: Nginx is a web server software. #Group: License: GRL URL: www.piyixia.com Source0: nginx-1.12.2.tar.gz #BuildRequires: #Requires: %description this is a nginx... %post useradd nginx %prep %setup -q %build ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} %files %doc /usr/local/nginx/* %changelog
5.rpmbuild -ba /root/rpmbuild/SPECS/nginx.spec
6.createrepo
以上是关于rpm打包的主要内容,如果未能解决你的问题,请参考以下文章