查看: 53|回覆: 0

[Ubuntu] ubuntu中使用 alien安装rpm包

[複製鏈接]

2

主題

0

回帖

0

積分

热心网友

金币
0
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2008-8-11
發表於 2019-9-17 09:50:00 | 顯示全部樓層 |閲讀模式

我们可以使用alien 在ubuntu中安装rpm 包
使用方法:

安装 alien

  • 安装
 
apt-get update 
apt-get install alien
  • 帮助命令
Usage: alien [options] file [...]
  file [...] Package file or files to convert.
  -d, --to-deb Generate a Debian deb package (default).
     Enables these options:
       --patch=<patch> Specify patch file to use instead of automatically
                            looking for patch in /var/lib/alien.
       --nopatch    Do not use patches.
       --anypatch Use even old version os patches.
       -s, --single Like --generate, but do not create .orig
                            directory.
       --fixperms Munge/fix permissions and owners.
       --test Test generated packages with lintian.
  -r, --to-rpm Generate a Red Hat rpm package.
      --to-slp Generate a Stampede slp package.
  -l, --to-lsb Generate a LSB package.
  -t, --to-tgz Generate a Slackware tgz package.
     Enables these options:
       --description=<desc> Specify package description.
       --version=<version> Specify package version.
  -p, --to-pkg Generate a Solaris pkg package.
  -i, --install Install generated package.
  -g, --generate Generate build tree, but do not build package.
  -c, --scripts Include scripts in package.
      --target=<arch> Set architecture of the generated package.
  -v, --verbose Display each command alien runs.
      --veryverbose Be verbose, and also display output of run commands.
  -k, --keep-version Do not change version of generated package.
      --bump=number Increment package version by this number.
  -h, --help Display this help message.
  -V, --version Display alien's version number.

安装一个rpm 包

  • 下载rpm 包
wget https://github.com/rongfengliang/exporter-rpm/raw/master/node-exporter-v1.4_centos7-1.x86_64.rpm
  • 安装rpm包
alien -i node-exporter-v1.4_centos7-1.x86_64.rpm
 

效果

 

 


参考资料

https://help.ubuntu.com/community/RPM/AlienHowto



来源:https://www.cnblogs.com/rongfengliang/p/11531780.html
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部