Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to convert DEB package to Arch Linux package

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to convert a DEB package into an Arch Linux package". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to convert a DEB package into an Arch Linux package.

Debtap-convert DEB packages to Arch Linux packages

To do this, we will use a utility called "Debtap". It stands for DEB T o A rch (Linux) P ackage. Debtap can be used in AUR, so you can use AUR aids such as Pacaur, Packer, or Yaourt to install it.

Use pacaur to install debtap to run:

Pacaur-S debtap

Install using Packer:

Packer-S debtap

Install using Yaourt:

Yaourt-S debtap

At the same time, your Arch system should also have bash, binutils, pkgfile and fakeroot packages installed.

After installing Debtap and all of the above dependencies, run the following command to create / update the pkgfile and debtap databases.

Sudo debtap-u

The sample output is:

= = > Synchronizing pkgfile database...:: Updating 6 repos... Download complete: archlinuxfr [151.7 KiB 67.5K/s 5 remaining] download complete: multilib [319.5 KiB 36.2K/s 4 remaining] download complete: core [707.7 KiB 49.5K/s 3 remaining] download complete: testing [1716.3 KiB 58.2K/s 2 remaining] download complete: extra [7.4 MiB 109K/s 1 remaining] download complete: community [16.9 MiB 131K/s 0 remaining]:: download complete in 131.47s

< 27.1 MiB 211K/s 6 files >

:: waiting for 1 process to finish repacking repos...== > Synchronizing debtap database... : 02 0:00:02--:-52381 Total% Received% Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 35.4M 100 35.4M 00 175k 00: 03:27 0:03:27--:-257km2 = > Downloading latest virtual packages list... % Total% Received% Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 264k 0 264k 00 30128 0 -:-- 0:00:09--:-74410 percent = > Generating base group packages list...== > All steps successfully completed!

You need to run the above command at least once.

Now is the time to start switching packages.

For example, to use the debtap conversion package Quadrapassel, you can do this:

Debtap quadrapassel_3.22.0-1.1_arm64.deb

The above command converts the DEB package file to the Arch Linux package. You need to enter the maintainer and license of the package, enter them, and then press enter to start the conversion.

The process of package conversion may depend on the speed of your CPU, ranging from seconds to minutes. Have a cup of coffee. Wait a minute.

Sample output:

= > Extracting package data...== > Fixing possible directories structure differencies...== > Generating .PKGINFO file... :: Enter Packager name:quadrapassel:: Enter package license (you can enter multiple licenses comma separated): GPL * Creation of. PKGINFO file in progress. It may take a few minutes, please wait... Warning: These dependencies (depend = fields) could not be translated into Arch Linux packages names:gsettings-backend = > Checking and generating .install file (if necessary). :: 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: = = > Generating .MTREE file... = > Creating final package...== > Package successfully createdcustomers = > Removing leftover files...

Note: Quadrapassel is already available in Arch Linux's official software library, and I'm just using it to illustrate.

If you don't want to answer any questions during package conversion, use-Q to skip all questions except editing metadata.

Debtap-Q quadrapassel_3.22.0-1.1_arm64.deb

To skip all the questions (not recommended), use-Q.

Debtap-Q quadrapassel_3.22.0-1.1_arm64.deb

After the conversion is complete, you can use pacman to install the newly converted package on the Arch system, as shown below.

Sudo pacman-U

To display the help documentation, use-h:

Debtap-hSyntax: debtap [options] package_filename Options:-h-h-help-- help Prints this help message-u-- u-update-- update Update debtap database-Q-Q-quiet-- quiet Bypass all questions, except for editing metadata file (s)-Q-Q-Quiet-- Quiet Bypass all questions (not recommended)-s-s-pseudo--pseudo Create a pseudo-64-bit package from a 32-bit .deb package-w-- w-wipeout-- wipeout Wipeout versions from all dependencies Conflicts etc.-p-p-pkgbuild-- pkgbuild Additionally generate a PKGBUILD file-P-- P-Pkgbuild-- Pkgbuild Generate a PKGBUILD file only so far I believe you have a deeper understanding of "how to convert a DEB package into an Arch Linux package". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report