rpm包
时间:2005-06-28 来源:honbj
rpm包
1 给 /path/what you want to rpm 打包
tar zcvf test.tgz *
2 cp /test.tgz /usr/src/redhat/SOURCE
3 在 /usr/src/redhat/SOURCE 下建一个文件 test.spec
内容:
Summary: Simple Example for RPM Building DEMO.
Name: test
Version: 1.0
Release: 1
Copyright: test
Group: test
Source: test.tgz
Packager: tester
%description
This package is used as a RPM building package.
%changelog
* Thu Jun 2005 test
- build for the first time.
%prep
%setup -c
%build
%install
%files
%doc
/path to your files/if only write directory here means all files under it
4 在/usr/src/redhat/SOURCE 下
rpmbuild -ba test.spec
相关阅读 更多 +