Install rpm files under Ubuntu

Source: Internet
Author: User

Is thinking about how to install the RPM package on Ubuntu, found this article, reproduced

Ubuntu package format is Deb, if you want to install the RPM package, you will first use alien to convert the RPM to Deb.

sudo apt-get installs alien #alien默认没有安装, so install it first

sudo alien xxxx.rpm #将rpm转换位deb, when done, generates a xxxx.deb with the same name

sudo dpkg-i xxxx.deb #安装

Note that the alien conversion of the Deb package does not guarantee 100% smooth installation, so you can find Deb best to use Deb directly

Sometimes the software that we want to use is not included in the Ubuntu Repository, and the program itself does not provide the Deb package that Ubuntu can use, and you don't want to compile from the source code. But if the software is provided with RPM packages, we can also install in Ubuntu.

Method One:

1. Install the Alien and Fakeroot tools first, where the former can convert the RPM package to the Deb package. The installation commands are:

sudo apt-get install alien Fakeroot

2. Download the RPM package that needs to be installed, assuming it is package.rpm.

3. Convert the RPM package to the Deb package using Alien:

Fakeroot Alien package.rpm

4. Once the conversion is successful, we can use the following instructions immediately to install:

sudo dpkg-i package.deb

Method Two:

1.CODE:

sudo apt-get install rpm alien

2.CODE:

Alien-d package.rpm

3.CODE:

sudo dpkg-i package.deb

Install EXE software under Ubuntu to wine, and install RPM software to Alien.

1, install the Alien command Line application tool.
[Email protected]:~$sudo apt-get install Alien
Password:
Reading Package List ... Complete
Analyzing Dependency tree for Package
Read status information ... Complete
The following additional packages will be installed:
Debhelper html2text Intltool-debian libbeecrypt6 librpm4 po-debconf rpm
Recommended Packages to install:
lsb-rpm Lintian Dh-make
Recommended Packages for installation:
Libmail-sendmail-perl Libcompress-zlib-perl
The following "new" packages will be installed:
Alien Debhelper html2text Intltool-debian libbeecrypt6 librpm4 po-debconf rpm
A total of 0 packages were upgraded, 8 new packages were installed, 0 packages were uninstalled, 24 software was not upgraded.
Need to download 2557kB package.
After decompression, it consumes 8274kB of extra space.
Do you want to continue? [Y/n]y
"Warning": The following packages cannot be verified!
Html2text Intltool-debian po-debconf debhelper libbeecrypt6 librpm4 rpm Alien
Do you install these packages without verification? [y/n] Y
Get: 1 http://debian.ustc.edu.cn feisty/main html2text 1.3.2a-3 [95.5kB]
Get: 2 http://debian.ustc.edu.cn feisty/main Intltool-debian 0.35.0+20060710.1 [31.6kB]
Get: 3 http://debian.ustc.edu.cn feisty/main po-debconf 1.0.8 [111kB]
Get: 4 http://debian.ustc.edu.cn feisty/main debhelper 5.0.42ubuntu1 [514kB]
Get: 5 http://debian.ustc.edu.cn feisty/main libbeecrypt6 4.1.2-6build1 [108kB]
Get: 6 http://debian.ustc.edu.cn feisty/main librpm4 4.4.1-14build1 [990kB]
Get: 7 http://debian.ustc.edu.cn feisty/main rpm 4.4.1-14build1 [603kB]
Get: 8 http://debian.ustc.edu.cn feisty/main Alien 8.65 [104kB]
Download 2557kB, time consuming 3s (844kb/s)
A package html2text that was previously deselected was selected.
(Reading Database ... The system currently has a total of 127,050 files and directories installed. )
Extracting Html2text (from .../html2text_1.3.2a-3_i386.deb) ...
A package Intltool-debian that was previously deselected was selected.
Extracting Intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ...
A package po-debconf that was previously deselected was selected.
Extracting po-debconf (from .../po-debconf_1.0.8_all.deb) ...
A package debhelper that was previously deselected was selected.
Extracting Debhelper (from .../debhelper_5.0.42ubuntu1_all.deb) ...
A package libbeecrypt6 that was previously deselected was selected.
Extracting Libbeecrypt6 (from .../libbeecrypt6_4.1.2-6build1_i386.deb) ...
A package librpm4 that was previously deselected was selected.
Extracting Librpm4 (from .../librpm4_4.4.1-14build1_i386.deb) ...
Selected package RPM has been deselected.
Extracting rpm (from .../rpm_4.4.1-14build1_i386.deb) ...
A package alien that was previously deselected was selected.
Extracting Alien (from .../archives/alien_8.65_all.deb) ...
Setting Html2text (1.3.2a-3) ...

Setting Intltool-debian (0.35.0+20060710.1) ...
Setting po-debconf (1.0.8) ...
Setting Debhelper (5.0.42UBUNTU1) ...
Setting LIBBEECRYPT6 (4.1.2-6build1) ...

Setting LIBRPM4 (4.4.1-14build1) ...

Setting rpm (4.4.1-14build1) ...

Setting Alien (8.65) ...
[Email protected]:~$

2, the use of Aline.
[Email protected]:~$ Alien--help
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 does not use patches.
--anypatch use even the old version OS patches.
-S,--single like--generate, but does 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 does not build the package.
-C,--scripts Include scripts in 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 the generated package.
--bump=number Increment Package version by this number.
-H,--help Display this help message.
-V,--version Display Alien ' s version number.


Install rpm files under Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.