Conversion of Deb format to RPM format in Linux environment

Source: Internet
Author: User
Tags python script

Today to deploy a Python script on an online server, which used the MYSQLDB, a variety of attempts to download the source code (a variety of dependencies are incompatible with the library), Get/yum (this linux is really pure ah these two can not be used) installation, wget download RPM package is not connected to the network, have failed, and Libmysqlclient-dev and Mysql-python are not very easy to find, each has a lot of versions, but also a variety of incompatible with each other version .

Finally found the available version is

ftp://rpmfind.net/linux/centos/6.6/os/x86_64/Packages/MySQL-python-1.2.3-0.3.c1.1.el6.x86_64.rpm

And

http://archive.debian.net/zh-cn/etch/amd64/libmysqlclient15-dev/download

Wget the two packages onto a single server, alien the Deb format into RPM format, rsync-avzp the two RPM packets to the online server, and then rpm-ivh them sequentially, OK







Reference: Inux conversion to RPM format in deb format


Original: http://blog.163.com/[email protected]/blog/static/884868712013224033518/

Convert the Deb format to the RPM format using the Alien tool

Alien_8.87.tar.gz

Download alien_8.87.tar.gz

[Email protected] ~]# wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.87.tar.gz

[Email protected] ~]# tar zxvf alien_8.87.tar.gz

[Email protected] ~]# CD Alien

[Email protected] alien]# Perl makefile.pl

[[email protected] alien]# make

[[email protected] alien]# make install

Convert Libnet0-dev_1.0.2a-7_i386.deb to libnet0-dev-1.0.2a-8.i386.rpm

[Email protected] ~]# alien-r libnet0-dev_1.0.2a-7_i386.deb

warning:skipping Conversion of scripts in package Libnet0-dev:postinst Prerm

Warning:use the--scripts parameter to include the scripts.

LIBNET0-DEV-1.0.2A-8.I386.RPM generated

Installing RPM Packages

[Email protected] ~]# RPM-IVH libnet0-dev-1.0.2a-8.i386.rpm

Conversion of Deb format to RPM format in Linux environment

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.