rpm打包工具

it2022-05-05  124

rpm打包工具

http://fedoraproject.org/wiki/How_to_create_an_RPM_package

# rpm --showrc|grep _topdir -14: _builddir %{_topdir}/BUILD -14: _buildrootdir %{_topdir}/BUILDROOT -14: _rpmdir %{_topdir}/RPMS -14: _sourcedir %{_topdir}/SOURCES -14: _specdir %{_topdir}/SPECS -14: _srcrpmdir %{_topdir}/SRPMS -14: _topdir %{getenv:HOME}/rpmbuild # echo %_topdir $HOME/rpmbuild > ~/.rpmmacros # cat ~/.rpmmacros %_topdir /root/rpmbuild # mkdir -p ~/rpmbuild/{BUILD,RPMS/x86_64,S{OURCE,PEC,RPM}S} # tree /root/rpmbuild/ /root/rpmbuild/ ├── BUILD │   └── monitor-agent-1.0 ├── BUILDROOT ├── RPMS │   └── x86_64 ├── SOURCES │   ├── monitor-agent-1.0 │   └── monitor-agent-1.0.tar.gz ├── SPECS │   └── monitor-agent.spec └── SRPMS # monitor-agent.spec Name: monitor-agent Version: 1.0 Release: 1%{?dist} Summary: monitor-agent Group: Applications/System License: GPL Source0: %{name}-%{version}.tar.gz BuildRoot: %{_builddir}/%{name}-%{version} Requires: nagios-plugins,nrpe,net-snmp-perl,perl-XML-LibXML,perl-JSON,perl-libwww-perl,perl-XML-XPath,perl-Net-Telnet,perl-Net-DNS,perl-DBI,perl-DBD-MySQL,perl-DBD-Pg,perl-Email-Send,
转载请注明原文地址: https://win8.8miu.com/read-1215.html

最新回复(0)