Chinaunix首页 | 论坛 | 博客
  • 博客访问: 243716
  • 博文数量: 137
  • 博客积分: 5005
  • 博客等级: 上校
  • 技术积分: 1360
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-25 09:21
个人简介

每天进步一点点

文章分类

全部博文(137)

文章存档

2016年(1)

2013年(2)

2012年(30)

2011年(42)

2006年(27)

2005年(35)

分类:

2005-06-28 12:45:56

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

阅读(905) | 评论(0) | 转发(0) |
0

上一篇:fedora 中创建soft raid

下一篇:eval用法三例

给主人留下些什么吧!~~