Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Alien Magic: RPM and DEB Mutual Convert     - Source Analysis: Java object memory allocation (Programming)

- Using the Linux VNC service (Server)

- Use the TC flow control test under Linux (Linux)

- Install Redis 2.6 5.5 32 position CentOS error resolved (Linux)

- How x2g0 install Remote Desktop on Linux VPS (Server)

- What Java 8 fastest garbage collector (Programming)

- Linux script commands - terminal recorder (Linux)

- Mybatis + binding Struts2: achieving user to insert and find (Programming)

- Oracle 11g on Linux system boot from the startup settings (Database)

- Oracle restrict certain IP, the malicious user actions on important table (Database)

- To compiler and install MariaDB-10.0.20 under CentOS 6.6 (Database)

- Python implementation Bursa transition model (Programming)

- Virt Related Command Summary (Linux)

- SSH automatic disconnection problem solving (Linux)

- CentOS7 virtual machine settings, and bridging problems (Linux)

- Use Nginx as a load balancer (Server)

- Linux variable learning experience (Linux)

- Java concurrent programming using the synchronized keyword ReentrantLock alternative primitive (Programming)

- Java polymorphism and exception handling (Programming)

- Objective-C basic program structure (Programming)

 
         
  Alien Magic: RPM and DEB Mutual Convert
     
  Add Date : 2017-01-08      
         
         
         
  As I am sure you must know a variety of software installation for Linux: use the package management system provided by the release (aptitude, yum, or zypper, also can cite many examples), compiled from the source code (although now rarely used but in the early development of Linux it is the only available method), or using the respective lower tool dpkg for .deb, and rpm for .rpm, pre-compiled package, so it goes.

RPM using Alien to convert DEB and RPM to DEB convert

In this article, we will introduce you alien, for a variety of Linux packet format conversion tool, its most common usage is to convert .rpm .deb (or vice versa).

If you need a specific type of package, and you can only find in other formats package, the tool can come in handy sooner or later - even if its author is no longer maintained, and a statement on its website: alien will probably never maintained in the experimental state.

For example, once I was looking for a .deb for an inkjet printer driver, but did not find - manufacturer only .rpm package, this time the alien save me. I installed the alien, the package will be converted, shortly after that I can use my printer, without any problems.

Even so, we must clarify that this tool should not be used to change important system files and libraries, because they have different configurations in different releases. Only in front of that kind of situation the recommended installation method is not suitable, alien can be used as a last resort.

Last but not least, we must note that although we use CentOS and Debian herein, in addition to the two previous releases and their respective family system, as far as we know, alien can work in Slackware, and even Solaris.

 

Step 1: Install the Alien and its dependencies

To install alien to CentOS / RHEL 7, you need to enable EPEL and Nux Dextop (yes, Dextop-- not Desktop) warehouse, in the following order:

# Yum install epel-release
Enable Nux Dextop warehouse packs the most current version is 0.5 (August 10, 2015 release)

# Rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
# Rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Then do,

# Yum update && yum install alien
In Fedora, you only need to run the above command.

In the Debian and its derivative version, you only need:

# Aptitude install alien
 

Step 2: convert the .deb into .rpm package

For this test, we chose the date tool that provides a range of tools for working with date and time a large number of financial data. We will download the .deb package to our CentOS 7 machine, and convert it into .rpm installation:

Check CentOS Version

Check CentOS version

# Cat / etc / centos-release
# Wget http://ftp.us.debian.org/debian/pool/main/d/dateutils/dateutils_0.3.1-1.1_amd64.deb
# Alien --to-rpm --scripts dateutils_0.3.1-1.1_amd64.deb

Will convert the .rpm .deb Linux

Important Note :( alien how to increase the minor version number of the target package. If you want to ignore the behavior, adding -keep-version identity).

If we now try to install the package, we will run into a little problem:

# Rpm -Uvh dateutils-0.3.1-2.1.x86_64.rpm

RPM installation package

To solve this problem, we need to enable epel-testing repository, and then install the rpmbuild tool to edit the configuration of the package to rebuild the package:

# Yum --enablerepo = epel-testing install rpmrebuild
Then run,

# Rpmrebuild -pe dateutils-0.3.1-2.1.x86_64.rpm
It will open your default text editor. Go to the section% files and delete rows relates to the directory mentioned in the error message, and then save the file and exit:

Alien to convert .deb version

But after you exit the file, you will be prompted to continue to reconstitute. If you choose "Y", the file will be reconstructed to the specified directory (the current working directory):

# Rpmrebuild -pe dateutils-0.3.1-2.1.x86_64.rpm

Construction of RPM package

Now you can continue as usual to install the package and verify:

# Rpm -Uvh /root/rpmbuild/RPMS/x86_64/dateutils-0.3.1-2.1.x86_64.rpm
# Rpm -qa | grep dateutils

Construction of RPM installation package

Finally, you can list the date of each tool included tools, you can also view their man pages:

# Ls -l / usr / bin | grep dateutils

Verify RPM packages installed


Step 3: convert the .rpm .deb package

In this section, we will demonstrate how to convert .rpm .deb. In a 32-bit Debian Wheezy machine, let us download for zsh shell of .rpm packages from CentOS 6 operating system warehouse. Note that the shell is not available in the Debian and its derivative version of the default installation.

# Cat / etc / shells
# Lsb_release -a | tail -n 4

Check Shell and Debian operating system version

# Wget http://mirror.centos.org/centos/6/os/i386/Packages/zsh-4.3.11-4.el6.centos.i686.rpm
# Alien --to-deb --scripts zsh-4.3.11-4.el6.centos.i686.rpm
You can safely ignore the information about the missing signature:

Convert the .rpm .deb package

After a child, .deb package should have been generated and can be installed:

# Dpkg -i zsh_4.3.11-5_i386.deb

Install RPM converted from Deb package

After installation, you can take a look at zsh whether to add to the list of legitimate shell:

# Cat / etc / shells

Confirm Zsh package installed

summary

In this paper, we have explained how to convert .rpm .deb and vice versa, which can be installed as a last means of such a program can not be obtained from the warehouse or as a divided origin code. In this paper, you will want to add to your bookmarks, because we all need alien.

Please feel free to share your thoughts on this article, it is written in the form below.
     
         
         
         
  More:      
 
- Tmux Crash Course: Tips and adjustment (Linux)
- Features and prevention methods elaborate network security grayware (Linux)
- Linux maximum number of threads and limit the number of queries the current thread (Linux)
- CentOS6.5 installation Docker (Linux)
- Linux System Getting Started Tutorial: How to update outdated version of Ubuntu (Linux)
- Online booking shocking information leakage risk, you dare book the tickets online? (Linux)
- Linux development management utility command (Linux)
- Install the open source database PostgreSQL 9.4 and phpMyAdmin on Ubuntu (Database)
- wget command examples (Linux)
- Linux System Getting Started Learning: The Linux anacron command (Linux)
- Linux fast set ip bond (Linux)
- Android Studio simple setup (Linux)
- Linux input and output redirection (Linux)
- Win7 + Ubuntu Kylin + CentOS 6.5 installed three systems (Linux)
- Using C / C ++ extensions Python (Programming)
- Analyzing Linux server architecture is 32-bit / 64-bit (Server)
- CentOS 6.7 install Nagios Tutorials (Server)
- Linux commands to access the cheat sheet (Linux)
- Oracle utilized undo data recovery operations (Database)
- Zabbix configure DataGuard monitoring (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.