Ubuntu Deb, rpminstallation package, and tar.gz Installation Method

Source: Internet
Author: User
The Ubuntu package format is Deb. If you want to install the RPM package, use alien to convert the RPM to Deb.
Sudo apt-Get install alien # alien is not installed by default, so install it first
Sudo alien XXXX. RPM # convert RPM to Deb. a xxxx. Deb with the same name is generated.
Sudo dpkg-I XXXX. Deb # Installation

Note that the Deb package converted from alien cannot be installed smoothly in 100%, so it is best to use Deb directly if you can find Deb.

Sometimes, 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, and 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. The installation command is:
Sudo apt-Get install alien fakeroot

2. Download the RPM package that needs to be installed for backup, for example, package. rpm.

3. Use alien to convert an RPM package to a deb package:

Fakeroot alien package. rpm

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

Sudo dpkg-I package. Deb

Method 2:

1. Code:
Sudo apt-Get install RPM alien
2. Code:
Alien-D package. rpm
3. Code:
Sudo dpkg-I package. Deb

The installation of tar.gz is mostly on the Internet, but I learned this evening and sent it for your reference.
To install the tar file, decompress it first.
Terminal input: sudo tar-zxvf compressed file name .tar.gz/tmp (Suppose you want to decompress it to the/tmp directory ),
Then, enter the directory name after CD decompression to the directory after decompression. Check if there is any Install file in LS. Follow the instructions above to install the directory. General steps: sudo./configure, make, make install

I installed ylmf OS 1.5. Decompress this step. I will find the file and right-click the file to decompress it !!

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.