CentOS7linux系统安装fpm服务,自己制作rpm包文件
作者:互联网
1.安装ruby环境
[root@oldboy /]# yum install -y ruby ruby-devel rubygems
gem install fpm gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/ gem sources -l gem install fpm fpm -s dir -t rpm -n cosmo -v 8.0 1.txt 补充:如果遇到这样的报错 Need executable 'rpmbuild' to convert dir to rpm {:level=>:error} 一般是因为需要你安装rpmbuild yum -y install rpm-build fpm -s dir -t rpm -n cosmo -v 8.0 1.txt
标签:CentOS7linux,rubygems,fpm,ruby,install,rpm,gem 来源: https://www.cnblogs.com/fusheng11711/p/11037812.html