How to convert debian package into manjaro .pkg.tar.zst?

Hello, i have download .deb debian package

and i get this .deb package file maxautoclicker_1.1_amd64.deb

How i can convert it to manjaro linux package (.pkg.tar.zst) to install it after conversion ??

Welcome to the forum! :slight_smile:

You could try using debtap, which is in the AUR. It’s a script to convert .deb packages into native ALPM packages, but I’ve personally never used it.

pamac build debtap
1 Like

Debtap has worked for me the few times I’ve needed to use it.

You are aware that this is not the recommended way to install software in Arch-based distributions, and that you can possibly break your system, right?

You are not on Debian or Ubuntununu land here.

debtap is not recommended for at least a couple reasons:

  • It sometimes can’t translate Debian package names to Arch package names
  • It creates an unnecessary .INSTALL file with functions that Pacman has had hooks for since 5.0.

Good example as this package fails:

:information_source: You must run at least once debtap -u with root privileges (preferably recently), before running this script

❯ sudo debtap -u
==> Synchronizing pkgfile database...
:: Updating # etc., etc.

❯ debtap ~/Downloads/maxautoclicker_1.1_amd64.deb
==> Extracting package data...
==> Fixing possible directories structure differencies...
==> Generating .PKGINFO file...

:: Enter Packager name:
❯  Your Name <> # defined in /etc/makepkg.conf or enter manually

:: Enter package license (you can enter multiple licenses comma separated):
❯ custom # See data.tar.xz/usr/share/doc/copyright

*** Creation of .PKGINFO file in progress. It may take a few minutes, please wait...

==> Checking and generating .INSTALL file (if necessary)... # Not necessary, but go ahead...

:: If you want to edit .PKGINFO and .INSTALL files (in this order), press (1) For vi (2) For nano (3) For default editor (4) For a custom editor or any other key to continue: 
❯ # Press Enter to create unnecessary .INSTALL file

==> Generating .MTREE file...

==> Creating final package...
==> Package successfully created!
==> Removing leftover files...

The package will be created in the same folder the source file is in as maxautoclicker-1.1-1-x86_64.pkg.tar.zst:

sudo pacman -U ~/Downloads/maxautoclicker-1.1-1-x86_64.pkg.tar.zst
loading packages...
resolving dependencies...
warning: cannot resolve "gdk-pixbuf", a dependency of "maxautoclicker"
:: The following package cannot be upgraded due to unresolvable dependencies:

The Arch package is called gdk-pixbuf2 which is covered by the gtk2 dependency. The dependencies can be found in the control.tar.xz/control file inside the .deb.

Many AUR (Arch User Repository) packages are just Debian packages extracted. My mullvad-vpn-bin package is one example.

See Arch package guidelines for more info.