New project to convert Arch Linux PKGBUILD (repository and AUR) to DEB package and install it on Debian/Ubuntu

The Arch Linux repository is very extensive and usually contains the latest software. If something is not in the repository, it is likely to be available in AUR (ArchLinux User Repository).

What if you could convert packages in Arch Linux repositories and AUR into DEB packages for easy installation using APT on Debian / Ubuntu and Linux distributions based on these (Pop!_OS, Linux Mint, etc.)?

Well, you can. Make a net, every minute with makedeb database Is a set of tools that allows you to do this. This is what they did:

  • makedeb Create a Debian package installable using APT from the Arch Linux PKBUILD file
  • mpm A package manager for makedeb, which can be used to install, update and clone packages from AUR and Arch Linux repositories on Debian and Debian-based Linux distributions
  • makedeb-db Convert Arch Linux dependency names to their Debian counterparts

Why “you can”? Well, because the project is still in its infancy, even if stable versions of these tools are available for download (and alpha versions), Only a few packages From Arch Linux, you can install it on Debian / Ubuntu. There are other possibilities that also work, but none of the ones I have tried (except those mentioned are effective).

Therefore, you cannot yet use the full Arch Linux repository and AUR to install packages on Debian or Ubuntu. But if you like this, you can help developers use many other packages to accomplish this job.Look This bug report Details.

Before that, you can use tools like Archbox to install software from Arch Linux on any other Linux distribution using the chroot environment. Although using Archbox is more tedious than this. In fact, the makedeb developers may have been inspired by Archbox to do this (just an idea, I did not see Archbox mentioned in the makedeb documentation).

Install and use

To install makedeb, mpm, and makedeb-db on Debian, Ubuntu, and any Linux distribution based on these (Linux Mint, Pop!_OS, etc.), first add the repository and update the software source:

sudo wget '' -O /etc/apt/trusted.gpg.d/hwittenborn.asc

echo 'deb [arch=all] any main' | sudo tee /etc/apt/sources.list.d/makedeb.list

sudo apt update

Then install the stable versions of makedeb, mpm and makedeb-db:

sudo apt install mpm makedeb makedeb-db

The stable version only supports AUR. For Arch Linux repository support, you need to install the alpha version of mpm and makedeb (mpm-alpha and makedeb-alpha).

The developer pointed out that with the alpha version, “things may occasionally break, and you need to know how to bypass your system when it happens.”In addition, it is important notes Here, any packages installed with a non-alpha version of mpm will not be recognized by mpm-alpha, so you need to use the following command to register these packages again mpm install.

The mpm package manager supports the following options:

  • search Looking for a package
  • clone Clone a package
  • install Install a package
  • update Update installed packages (I prefer this to be “upgrade” rather than “update”, so as not to confuse users, because “update” performs other operations on Debian)

As a test, after installation, you can convert matcha-gtk-theme Package AUR to DEB and install it using the following command:

mpm install matcha-gtk-theme

Or, if you want to create a DEB package directly from PKGBUILD without using the mpm package manager, you can use makedeb to do it.Download PKGBUILD, open a terminal in the folder where the PKGBUILD file is saved, and simply run makedeb At the terminal. You can also specify a PKGBUILD -F Option and install it after creating DEB, use -I.

Important note: do not run mpm sudo!

Want to create a DEB package from Arch Linux PGKBUILD files on Arch Linux? You can also do this by installing makedeb from AUR: stable | α.

by r/archlinux