LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-08-2018, 04:52 AM   #1
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,294

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
rpm2tgz does not work


Hi all,

After today's rpm-4.14.2.1 update, rpm2tgz stopped working giving the following error:
Code:
ERROR:  rpm2cpio failed.  (maybe file.rpm is not an RPM?)
Downgrading rpm makes rpm2tgz working again.

Regards
 
Old 11-08-2018, 05:32 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,587

Rep: Reputation: Disabled
Hi,

Please provide a link to a file on which rpm-4.14.2.1 fails so that people can hopefully help debugging this issue.
 
Old 11-08-2018, 05:57 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,294

Original Poster
Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Quote:
Originally Posted by Didier Spaier View Post
Hi,

Please provide a link to a file on which rpm-4.14.2.1 fails so that people can hopefully help debugging this issue.
Sorry I didn't make myself clear.
It happens with whatever rpm file I've tried, e.g:
E.g:
Code:
bash-4.4$ rpm2tgz google-chrome-stable_current_x86_64.rpm 
ERROR:  rpm2cpio failed.  (maybe google-chrome-stable_current_x86_64.rpm is not an RPM?)
The problem is with the latest rpm-4.14.2.1 package, because reverting back to rpm-4.14.1 it works.
 
Old 11-08-2018, 06:03 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,350

Rep: Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398
You don't really need rpm2tgz IMHO, Just extract rpms directly with bsdtar.

P.S. If you want to get the latest chrome in slackware format, you could use this. You don't even need to download Chrome first, it does all that for you.
 
1 members found this post helpful.
Old 11-08-2018, 06:04 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,294

Original Poster
Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
After digging around, I've found that I had to install lmdb as a dependency for the new rpm2cpio.
Now everything is working again.

Regards
 
1 members found this post helpful.
Old 11-08-2018, 06:13 AM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,350

Rep: Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398
Quote:
Originally Posted by ruario View Post
You don't really need rpm2tgz IMHO, Just extract rpms directly with bsdtar.
In fact FWIW, you don't even need bsdtar

Code:
wget https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-70.0.3538.77-1.x86_64.rpm
mkdir chrome-files
tail -c+55315 google-chrome-stable-70.0.3538.77-1.x86_64.rpm | xz -d | cpio -D chrome-files -id
Following the above, the contents of Chrome (stable) 70.0.3538.77 would be in chrome-files. Switch into the directory, adjust anything you need changing and run makepkg
 
Old 11-08-2018, 06:13 AM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,350

Rep: Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398
Quote:
Originally Posted by bathory View Post
After digging around, I've found that I had to install lmdb as a dependency for the new rpm2cpio.
Now everything is working again.
Mark as solved?
 
Old 11-08-2018, 07:15 AM   #8
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 868

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
The lmdb package is part of Slackware{64}-current. I was added Fri Sep 14 23:06:26 UTC 2018.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how well does rpm2tgz work? Cultist Slackware 8 10-28-2010 01:18 PM
rpm2tgz question rengo.Java Linux - Software 1 05-19-2007 07:25 AM
rpm2tgz lenucks Slackware 3 06-13-2004 09:09 PM
problem with rpm2tgz laxi Slackware 15 12-12-2003 08:29 PM
about rpm2tgz laxi Slackware 4 09-28-2003 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration