ubuntu下可以用rpm -i 安装rpm包吗?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
esolve
帖子: 210
注册时间: 2010-05-08 4:52

ubuntu下可以用rpm -i 安装rpm包吗?

#1

帖子 esolve » 2015-10-04 10:35

搜了下网上,感觉都要用什么

代码: 全选

sudo apt-get install alien
sudo alien -i package_file.rpm
但是我试了一下rpm命令,貌似有这个命令啊,可以直接用rpm吗?

代码: 全选


esolve@mypad:~$ rpm
RPM version 4.11.1
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-afgpcdLlsiv?] [-a|--all] [-f|--file] [-g|--group]
        [-p|--package] [--pkgid] [--hdrid] [--triggeredby] [--whatrequires]
        [--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles]
        [-L|--licensefiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT]
        [-s|--state] [--nofiledigest] [--nofiles] [--nodeps] [--noscript]
        [--allfiles] [--allmatches] [--badreloc] [-e|--erase=<package>+]
        [--excludedocs] [--excludepath=<path>] [--force] [--force-debian]
        [-F|--freshen=<packagefile>+] [-h|--hash] [--ignorearch]
        [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]
        [--nofiledigest] [--nocontexts] [--noorder] [--noscripts]
        [--notriggers] [--nocollections] [--oldpackage] [--percent]
        [--prefix=<dir>] [--relocate=<old>=<new>] [--replacefiles]
        [--replacepkgs] [--test] [-U|--upgrade=<packagefile>+]
        [-D|--define='MACRO EXPR'] [--undefine=MACRO] [-E|--eval='EXPR']
        [--macros=<FILE:...>] [--nodigest] [--nosignature]
        [--rcfile=<FILE:...>] [-r|--root=ROOT] [--dbpath=DIRECTORY]
        [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
        [-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
        [--conflicts] [--obsoletes] [--provides] [--requires] [--info]
        [--changelog] [--xml] [--triggers] [--last] [--dupes]
        [--filesbypkg] [--fileclass] [--filecolor] [--fscontext]
        [--fileprovide] [--filerequire] [--filecaps]

poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下可以用rpm -i 安装rpm包吗?

#2

帖子 poloshiao » 2015-10-04 10:55

https://help.ubuntu.com/community/RPM/AlienHowto
https://wiki.debian.org/RPM

1. One should avoid using .rpm package on a Debian system. (包含 Ubuntu)

2. Why would anyone want to use the RPM within Debian?
2-1. Binary package
If the package only comes in binary .rpm format, you can use alien to convert it.
2-2. Source Package
In order to extract sources from an rpm archive, it may be necessary to use the rpm tool.
A developer may want to extract package source code that is only available within an rpm archive.

3. 進一步參閱
http://manpages.ubuntu.com/manpages/viv ... rpm.8.html
rpm - RPM Package Manager
rpm is a powerful Package Manager, which can be used to build, install,
query, verify, update, and erase individual software packages. A
package consists of an archive of files and meta-data used to install
and erase the archive files. The meta-data includes helper scripts,
file attributes, and descriptive information about the package.
Packages come in two varieties: binary packages, used to encapsulate
software to be installed, and source packages, containing the source
code and recipe necessary to produce binary packages.
头像
懒蜗牛Gentoo
论坛版主
帖子: 7362
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: ubuntu下可以用rpm -i 安装rpm包吗?

#3

帖子 懒蜗牛Gentoo » 2015-10-06 22:23

如果你要装的包实在实在是在Ubuntu的源里找不到,并且软件的官方没有供Ubuntu使用的deb包,也没有供Debian使用的deb包,那么,你应该多去搀老奶奶过过马路,多去马路上捡捡一分钱交给警察之类的积攒一下人品,然后,再回来安装。 :Grimace

先说说要装什么软件把,或许坛子里的童鞋们可以给你更好的建议。
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
回复