Skip to content

Commit 07df2c1

Browse files
author
yichi
committed
update
1 parent 35dfe82 commit 07df2c1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

_posts/2018-12-15-make-rpm.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,14 @@ rpm确实有依赖自动识别机制,能识别到这个依赖说明pm2里用
324324
在centos6中`%global __requires_exclude`宏不支持,无奈,部分文档中提的`%define __requires_exclude`我试验了也不支持,我只能通过`AutoReq: no`暴力关掉所有自动依赖分析。
325325

326326
centos6中也不支持`%autosetup`,不能解决rpm包和解压后文件目录名不一致问题,只能先将`npm-bundle`打的压缩包解压,将package文件夹名改成`pm2-3.2.2`,再通过`tar -zcvf pm2-3.2.2.tgz pm2-3.2.2`压缩回去。
327+
328+
## 参考
329+
330+
- [How to create an RPM package/zh-cn
331+
](https://fedoraproject.org/wiki/How_to_create_an_RPM_package/zh-cn)
332+
333+
- [使用rpm-build制作nginx的rpm包](http://blog.51cto.com/nmshuishui/1583117)
334+
335+
这篇文章里的图非常有助于理解: ![image](http://s3.51cto.com/wyfs02/M01/53/B3/wKiom1RtybbxDoijAARlofRyCW4338.jpg)
336+
337+
- [rpm命令速查](http://man.linuxde.net/rpm)

0 commit comments

Comments
 (0)