The officially official Devuan Forum!

You are not logged in.

#1 2023-04-29 15:34:14

swanson
Member
Registered: 2020-04-22
Posts: 104  

Gdebi/dpkg and zst archives?

I've recently tried to install deb packages containing zst-archives and failed. I have zstd installed (Chimeara).
What can I do? I can unpack zst archives in terminal, but Gdebi and Dpkg fails.

I don't mind hacking the deb packages if only I knew how to do it. Must be some way...

Offline

#2 2023-04-30 07:58:07

soren
Member
Registered: 2023-04-30
Posts: 142  

Re: Gdebi/dpkg and zst archives?

swanson wrote:

I've recently tried to install deb packages containing zst-archives and failed. I have zstd installed (Chimeara).
What can I do? I can unpack zst archives in terminal, but Gdebi and Dpkg fails.

I don't mind hacking the deb packages if only I knew how to do it. Must be some way...

Where did you get the deb package, what is it? If it is a ubuntu package or a debian 12 package you shouldnt try doing that on chimaera (debian/devuan 11) or at all. Support for zst is slated for debian 12 (unstable at the moment).

In addition:
https://tracker.debian.org/news/1407587 … -unstable/

- libdpkg: Add zstd support for .deb archives. Closes: #892664

Last edited by soren (2023-04-30 08:02:17)

Offline

#3 2023-04-30 12:16:16

swanson
Member
Registered: 2020-04-22
Posts: 104  

Re: Gdebi/dpkg and zst archives?

I've collected deb packages from all over. It's mainly addons to my DAW (plugins). So they are not mission critical nor damaging to the system. Most install in /home/user as well. I've been seeing more and more zst archives lately, so I'm glad we have zstd at least.

Offline

#4 2023-04-30 12:29:18

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,253  

Re: Gdebi/dpkg and zst archives?

Given that a .deb file is an ar archive file containing two .tar.gz files it might be within scope for you to repackage things yourself.

Offline

#5 2023-04-30 17:30:01

swanson
Member
Registered: 2020-04-22
Posts: 104  

Re: Gdebi/dpkg and zst archives?

ralph.ronnquist wrote:

Given that a .deb file is an ar archive file containing two .tar.gz files it might be within scope for you to repackage things yourself.

Yeah, but I forgot how to do it. I could possibly unpack debs and unzst them, and then repack them as new debs.

Where can I find good guides on that?

Thanks for the help guys!

Offline

#6 2023-04-30 22:03:26

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,253  

Re: Gdebi/dpkg and zst archives?

man ar (from binutils-common)
man tar (from package tar)

Offline

#7 2023-05-01 08:29:41

soren
Member
Registered: 2023-04-30
Posts: 142  

Re: Gdebi/dpkg and zst archives?

swanson wrote:
ralph.ronnquist wrote:

Given that a .deb file is an ar archive file containing two .tar.gz files it might be within scope for you to repackage things yourself.

Yeah, but I forgot how to do it. I could possibly unpack debs and unzst them, and then repack them as new debs.

Where can I find good guides on that?

Thanks for the help guys!

I havent done this in awhile either but ill try and give a somewhat simplistic guide, in a terminal i just tried with the jq package but the data and control file were in xz format.

mkdir jq
ar vx jq.deb --output /home/soren/jq
cd /home/soren/jq
tar xvf data.tar.xz
tar xvf control.tar.xz
rm control.tar.xz data.tar.xz
mkdir DEBIAN
mv usr/ control debian-binary md5sums DEBIAN/
cd ..
dpkg-deb -b /home/soren/jq jq.fixed.deb

Last edited by soren (2023-05-01 08:39:17)

Offline

Board footer