Convert a Debian .deb package to an Arch Linux package

The lack of consolidation of a universal package system, has led us to the need to convert packages from a distribution into packages that adapt to ours. In my case he used Linux Mint as main distro and Antergos for testing, sometimes I get apps that only have a package .deb and it is not in AUR, in those cases he used a tool called archalien allowing me convert a .deb into an Arch Linux package.

Some time ago there was talk here of another method to achieve the goal of Convert a Debian .deb package to an Arch Linux packageThe difference with the method that we are going to teach you is the automation of the process.

In the same way, a tutorial was made for Install Debian / Ubuntu applications on ArchLinux with DPKG with the limitation that it does not resolve dependencies. deb in an Arch Linux package

What is archalien?

It is a free tool written in Python that allows convert a Debian .deb package to an Arch Linux package. Its use and installation is very simple, the tool will save time in the building an Arch Linux package based on .debas well as assisting novice users in installing applications on Arch Linux-based distributions.

Converting a .deb to an Arch Linux package

To convert a .deb into an Arch Linux package quickly and easily, we must clone the archalien repository to download the latest version of the tool. To do this we must open a terminal and execute the following command:

git clone https://github.com/Asher256/archalien.git

Using Archalien

Next we must execute the application indicating the .deb package that we want to convert. the syntax that we must use is the following:

$ ./archalien.py apt-file_2.5.4ubuntu1_all.deb

This results in an Arch Linux package with the following name: apt-file-2.5.4ubuntu1.pkg.tar.gz

Install pkg.tar.gz package on Arch Linux and Derivatives

To install the .pkg.tar.gz file resulting from the .deb conversion, just execute the following command:

pacman -U nombredelpaquete

or what is equal to

pacman -U apt-file-2.5.4ubuntu1.pkg.tar.gz

We are sure that this very practical and useful tool will save you a lot of time and save you some headaches.


10 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Julio Cesar Campos said

    Greetings, I did the steps that the tutorial says, but the archlinux files end in an extension like this: curlew-0.2.2-1-any.pkg.tar.xz and if indeed the program you mention generates them in this extension: curlew-0.2.2-1.pkg.tar.gz which cannot be installed with pacman -U
    So what's wrong with the program….
    Thank you

    1.    Anonymous said

      I coincide with July ...

      you should generate an .xz file to install with pacman

  2.   Marty mcfly said

    And to convert a DEB in RPM?

    1.    lizard said

      You can see the article that UsemosLinux wrote How to convert DEB to RPM and vice versa

      1.    Marty mcfly said

        Thank you very much for the information 😉

  3.   nicolas97 said

    Guys what a pity this error appears to me, ./archalien.py: The file or directory does not exist, someone who can help me?

  4.   castling said

    Invalid package version, not working.

  5.   luvhines said

    Thank you! I didn't know it worked perfectly for me

  6.   Andrew Rjx said

    Thanks, if it worked perfect for me

  7.   Juan Jose said

    Thank you very much