void xbps
sudo apt install zstd
mkdir test
cd test
zstdcat swappy-1.5.1_1.x86_64.xbps | tar xa
archlinux .pkg.tar.zst
tar --use-compress-program=unzstd -xvf archive.tar.zst
or unzstd first and tar xvf file second
tar tf filename.tar to list files
rpm
https://github.com/rpm-software-management/rpm/blob/master/scripts/rpm2cpio.sh
rpm with cpio
sh rpm2cpio.sh swappy-1.4.0-3.fc37.x86_64.rpm | cpio -idmv
rpm with zstd (rhel 9 uses zstd)
rpm2cpio foo.rpm | zstd -d | cpio -idmv
src:
https://fedoraproject.org/wiki/Changes/Switch_RPMs_to_zstd_compression
https://stackoverflow.com/questions/18787375/how-do-i-extract-the-contents-of-an-rpm
Comments
Post a Comment