Install the rpm file on Ubuntu (convert rpm to deb)

Source: Internet
Author: User
Install the rpm file method on Ubuntu (convert rpm to deb) the Ubuntu package format is deb. to install the rpm Package, use alien to convert rpm to deb. Sudoapt-getinstallalien # alien is not installed by default, so first install sudoalienxxxx... install the rpm file method on Ubuntu (convert rpm to deb) the Ubuntu package format is deb. to install the rpm Package, use alien to convert rpm to deb. Sudo apt-get install alien # alien is not installed by default, so first install sudo alien xxxx. rpm # Convert rpm to deb. after the conversion is completed, a xxxx with the same name will be generated. debsudo dpkg-I xxxx. deb # Installation Note: The deb package converted using alien cannot ensure smooth installation of 100%, so you can find deb and use deb directly, the software we want to use is not included in the Ubuntu repository, and the program itself does not provide the deb package that can be used by Ubuntu. you do not want to compile it from the source code. But if the software provides an rpm package, we can also install it in Ubuntu. Method 1: 1. install the alien and fakeroot tools first. The former can convert the rpm package to the deb package. Run the following command to install sudo apt-get install alien fakeroot. 2. download the rpm package to be installed and run it as package. rpm. 3. use alien to convert an rpm package to a deb package: fakeroot alien package. rpm 4. once the conversion is successful, run the following command to install sudo dpkg-I package. deb Method 2: 1. CODE: sudo apt-get install rpm alien2.CODE: alien-d package. rpm3.CODE: sudo dpkg-I package. deb 1. use deb package 1. view the files contained in deb (not installed) $ dpkg-c xxx. deb // view $ dpkg-L debname according to the deb file before installation // view according to the package name after installation 2. install deb package $ dpkg-I xxx. deb note: If an error is prompted, you can add the parameter-force-all to force the installation, but this is not recommended. check which deb package of a file $ dpkg-S filepath 4. remove deb package $ dpkg-r debname
Related Article

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.