LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2008, 07:59 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Resigning RPMv3 packages in RPM v4


Hi.


I have a package that was build for RPMv3. I'm in need of resigning the package on my RPMv4 system, but I've learnt that resigning RPMv3 packages in RPMv4 corrupts the package.

So, the way I see it, I need to either find a way to resign the package on my RPMv4 system, or downgrade RPMv4 to RPMv3 and then do the resigning.

Has anyone come across this issue? How can one downgrade RPM from version 4 to version 3?


Regards,
kenneho
 
Old 06-19-2008, 08:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I think downgrading the RPMDB to version 3 would be a mistake. What's the *real* problem? Wouldn't it be more efficient, safe, easier to rebuild the package for RPMv4 and *then* sign it?
 
Old 06-19-2008, 09:24 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by unSpawn View Post
I think downgrading the RPMDB to version 3 would be a mistake. What's the *real* problem? Wouldn't it be more efficient, safe, easier to rebuild the package for RPMv4 and *then* sign it?
I guess it would, but I don't have access to the source RPM. I've never rebuilt an RPM before, but thought I'd need the source RPM.

Is it possible to rebuild based on the ordinary RPM itself?
 
Old 06-19-2008, 09:40 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes, you'll need the .src.rpm or a tarball (plus .spec file). You can reconstruct an RPM manually or based on contents as the RPMDB sees them (see Sourceforge: "rpmrebuild") but the results can not be distributed publicly *ever*, are possibly incomplete and as such nobody in their right mind would support problems caused by a package rebuilt that way. Can you be more specific about what package(s) this is about?
 
Old 06-20-2008, 04:23 AM   #5
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by unSpawn View Post
Yes, you'll need the .src.rpm or a tarball (plus .spec file). You can reconstruct an RPM manually or based on contents as the RPMDB sees them (see Sourceforge: "rpmrebuild") but the results can not be distributed publicly *ever*, are possibly incomplete and as such nobody in their right mind would support problems caused by a package rebuilt that way. Can you be more specific about what package(s) this is about?
I totaly agree on the support thing. I'm pretty sure the vendor wouldn't want to provide support on such modified packages.

The packages I wish to resign are Legato NetWorker packages. So to sum up:
  • There is no way the vendor is just going to give me the source code.
  • I could hope that the vendor rebuild the package for RPMv4, men who knows how long that would take.
  • I do not wish to rebuild the package myself due to support problems.
  • I could downgrade RPMv3 on one of my servers and do the resigning there. I'm not sure if this would work, as the RPM DB probably would get broken.

Any suggestions?
 
Old 06-20-2008, 10:29 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for clarifying. Basically there should be no resigning because the signature should match the vendor or publisher and they should only initiate resigning if the key was faulty, expired, retracted or replaced. Explaining in detail what problems you encounter installing these packages (incl. error messages if any) could help us find you a workaround or solution.
 
  


Reply



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
RPM packages WeaselNo7 Linux - Software 2 02-27-2007 05:20 PM
RPM packages Deelk Slackware 2 04-03-2006 11:48 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages inward_eye Linux - Software 3 08-24-2003 03:07 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:02 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
Open Source Consulting | Domain Registration