SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# file libpackagekit-glib-1.2.2-alt1.x86_64.rpm
libpackagekit-glib-1.2.2-alt1.x86_64.rpm: RPM v3.0 bin i386/x86_64
# file -i libpackagekit-glib-1.2.2-alt1.x86_64.rpm
libpackagekit-glib-1.2.2-alt1.x86_64.rpm: application/x-rpm; charset=binary
# rpm2tgz libpackagekit-glib-1.2.2-alt1.x86_64.rpm libpackagekit-glib-1.2.2-alt1.x86_64.txz
ERROR: rpm2cpio failed. (maybe libpackagekit-glib-1.2.2-alt1.x86_64.rpm is not an RPM?)
ERROR: rpm2cpio failed. (maybe libpackagekit-glib-1.2.2-alt1.x86_64.txz is not an RPM?)
# for i in `find . -type f | fgrep .rpm | sort`; do rpm2cpio $i | cpio -idmv &>/dev/null; done
error: ./libpackagekit-glib-1.2.2-alt1.x86_64.rpm: invalid signature tag Archivesize (1046)
error reading header from package
rpm2tgz takes only .rpm files as an argument. You don't need to specify the output file name :
Code:
$ rpm2tgz
usr/bin/rpm2tgz: Converts RPM format to standard GNU tar + GNU zip format.
(view converted packages with "less", install and remove
with "installpkg", "removepkg", "pkgtool", or manually
with "tar")
Usage: /usr/bin/rpm2tgz [OPTION] <file.rpm>
(Outputs "file.tgz")
-s extract the install scripts to /usr/doc/$PRGNAM-$VERSION/
for review.
-S extracts the install scripts to be executed on package installation
(only pre-install and post-install scripts used)
USE WITH CAUTION!
-n name the output package using the rpm's metadata
-r extract what the rpm's "requires" (dependencies)
as documention to /usr/doc/$PRGNAM-$VERSION/
-d attempt a wellformed slack-desc from the rpm meta data
-c reset all directory permissions to 755 and ownership to root:root.
However, the output file name does not respect slackware naming scheme, ie. 'name-version-arch-build.ext' :
# file libpackagekit-glib-1.2.2-alt1.x86_64.rpm
libpackagekit-glib-1.2.2-alt1.x86_64.rpm: RPM v3.0 bin i386/x86_64
# file -i libpackagekit-glib-1.2.2-alt1.x86_64.rpm
libpackagekit-glib-1.2.2-alt1.x86_64.rpm: application/x-rpm; charset=binary
# rpm2tgz libpackagekit-glib-1.2.2-alt1.x86_64.rpm libpackagekit-glib-1.2.2-alt1.x86_64.txz
ERROR: rpm2cpio failed. (maybe libpackagekit-glib-1.2.2-alt1.x86_64.rpm is not an RPM?)
ERROR: rpm2cpio failed. (maybe libpackagekit-glib-1.2.2-alt1.x86_64.txz is not an RPM?)
# for i in `find . -type f | fgrep .rpm | sort`; do rpm2cpio $i | cpio -idmv &>/dev/null; done
error: ./libpackagekit-glib-1.2.2-alt1.x86_64.rpm: invalid signature tag Archivesize (1046)
error reading header from package
Anybody able to do this?
Thanks.
Hi,
rpm2tgz does work for me. As phenixia2003 already wrote you don't want to specify the output file name, however it should still create a tgz file even if you do.
When i tried running your command:
Code:
rpm2tgz libpackagekit-glib-1.2.2-alt1.x86_64.rpm libpackagekit-glib-1.2.2-alt1.x86_64.tgz
(...)
Creating Slackware package: /home/username/libpackagekit-glib-1.2.2-alt1.x86_64.tgz
./
install/
install/doinst.sh
usr/
usr/lib64/
usr/lib64/girepository-1.0/
usr/lib64/girepository-1.0/PackageKitGlib-1.0.typelib
usr/lib64/libpackagekit-glib2.so.18.1.3
Slackware package /home/username/libpackagekit-glib-1.2.2-alt1.x86_64.tgz created.
ERROR: rpm2cpio failed. (maybe libpackagekit-glib-1.2.2-alt1.x86_64.tgz is not an RPM?)
So first it creates a tgz package from rpm, then complains the tgz file is not an rpm as expected.
Try downloading the file again. I can see there is no checksum files on the mirror but try checking the md5sum of the file to see if it is identical to the one I have:
The error seems to imply the rpm file is corrupted and not able to be properly extracted. If you redownload the file (and you can check the md5sum against the one provided by alekow), it will likely fix your issue.
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451
Rep:
I think it's just a bad rpm. rpm -V got me this:
Code:
[root@ambiorix slackbuilds]# rpm -V libpackagekit-glib-1.2.3-alt3.x86_64.rpm
warning: libpackagekit-glib-1.2.3-alt3.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID ae4ae412: NOKEY
error: libpackagekit-glib-1.2.3-alt3.x86_64.rpm: invalid signature tag Archivesize (1046)
error: libpackagekit-glib-1.2.3-alt3.x86_64.rpm: not an rpm package (or package manifest)
The messages for another random ALT Linux rpm were the same.
Meanwhile, an rpm from Fedora was fine:
Code:
[root@ambiorix slackbuilds]# rpm -V AllegroOGG-1.0.3-26.fc34.x86_64.rpm
warning: AllegroOGG-1.0.3-26.fc34.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 45719a39: NOKEY
Unsatisfied dependencies for AllegroOGG-1.0.3-26.fc34.x86_64:
liballeg.so.4.4()(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
libc.so.6()(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
libc.so.6(GLIBC_2.14)(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
libogg.so.0()(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
libvorbis.so.0()(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
libvorbisfile.so.3()(64bit) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
rtld(GNU_HASH) is needed by AllegroOGG-1.0.3-26.fc34.x86_64
missing a /usr/lib/.build-id
missing a /usr/lib/.build-id/a1
missing a /usr/lib/.build-id/a1/03a7244edcb8418ab31c3d2e96798a118d96d7
missing /usr/lib64/libAllegroOGG.so.0
missing /usr/share/doc/AllegroOGG
missing d /usr/share/doc/AllegroOGG/ALOGG.txt
missing d /usr/share/doc/AllegroOGG/AUTHORS.txt
missing d /usr/share/doc/AllegroOGG/COPYING.txt
rpm2tgz managed to make a tgz package out of the Fedora rpm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.