cetus/doc/cetus-rpm.md
2018-03-06 15:34:44 +08:00

47 lines
825 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Cetus rpm说明
## 简介
Cetus rpm打包流程及安装
## 打包流程
### 1. 创建打包环境
```
mkdir rpmbuild/
cd rpmbuild/
mkdir -pv {BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
```
### 2. 下载源码压缩成tar.gz格式放入SOURCES中
```
git clone http://github
tar zcvf cetus-version.tar.gz cetus-version/
```
### 3. 将cetus的原spec文件放入SPECS中,编辑sepc文件修改版本号和释出号等信息
```
#版本号,与tar.gz包的一致
Version: version
#释出号也就是第几次制作rpm
Release: release%{?dist}
```
### 4.增加日志段
```
%changelog
* Week month day year packager<email> - cetus-version-release
- do something
```
## 安装
安装命令如下:
```
rpm -ivh --prefix /home/user/cetus_install cetus-version-release.el7.x86_64.rpm
```