You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
I think will be cool to support .deb and .rpm and probably others linux packages formats
.deb are custom wrapped tar.gz/tar.bz2/tar.xz/tar.lz4/tar.sz archives
.rpm are custom wrapped cpio archives
the only program that handle these archive types that i'm aware of is 7zip that have a linux port p7zip, but in the latest versions of 7zip some problems arise and i needed to use an older version, having a multiplatform/dependencies free archiver that handle also that common type of linux packages will be great, for my needs will be enought to have the extract operation!
What do you think about that?
thank you in advice :)
@ducktype Hey actually, I just updated the issue templates. Would you mind re-creating one issue per format using the template specifically for requesting new archive formats? Thanks!
@ahrav That could be a reference implementation, yeah? Feel free to make a PR if we can / want to use it!
Yea that's correct. It's not a great solution, but it does provide us a way to extract .rpm and .deb file formats. It's really just a convenience helper to extract the files into tarballs which your pkg then nicely takes care of.
RPM add some header before the cpio stream so some code to parse and skip to the start cpio offset Is required i think this lib have some of that stuff, but Is old:
Activity
mholt commentedon Nov 30, 2018
Sure, pull requests welcome to add additional archive formats.
mholt commentedon Dec 2, 2018
@ducktype Hey actually, I just updated the issue templates. Would you mind re-creating one issue per format using the template specifically for requesting new archive formats? Thanks!
ahrav commentedon Aug 15, 2023
Only 5 years later 🤣 trufflesecurity/trufflehog#1625
mholt commentedon Aug 16, 2023
@ahrav That could be a reference implementation, yeah? Feel free to make a PR if we can / want to use it!
ahrav commentedon Aug 16, 2023
Yea that's correct. It's not a great solution, but it does provide us a way to extract .rpm and .deb file formats. It's really just a convenience helper to extract the files into tarballs which your pkg then nicely takes care of.
mholt commentedon Aug 16, 2023
Very cool :)
ducktype commentedon Aug 16, 2023
Seems the proposed solution uses external commands, i feel archiver should handle extractions by itself and also avoid double copying the archive.
There are native golang libs, also recently updated, that handle ar (Deb) and cpio (RPM) formats
https://pkg.go.dev/pault.ag/go/debian/deb
https://pkg.go.dev/github.com/u-root/u-root/pkg/cpio
RPM add some header before the cpio stream so some code to parse and skip to the start cpio offset Is required i think this lib have some of that stuff, but Is old:
https://pkg.go.dev/github.com/sassoftware/go-rpmutils
taoxinyi commentedon Apr 11, 2024
Would like to see support for
.rpmas well!