User Tools

Site Tools


packages:rpm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packages:rpm [2025-02-09 00:23] – sequoia bagginspackages:rpm [2025-02-27 13:03] (current) arekm
Line 13: Line 13:
 installed will cause errors and must be reinstalled. installed will cause errors and must be reinstalled.
  
-The former problem is fixed, I have re-signed all packages in main +The former problem is fixed, All packages in main PLD Th repo have been re-signed.
-PLD Th repo.+
  
 The later is more involved, because rpm will barf without telling The later is more involved, because rpm will barf without telling
Line 22: Line 21:
 ''<nowiki>rpm -qa --nosignature --qf ''</nowiki>'' (which should output nothing) and watch ''<nowiki>rpm -qa --nosignature --qf ''</nowiki>'' (which should output nothing) and watch
 if you see errors like those at the end of this message. if you see errors like those at the end of this message.
-In case you do, just run the below command, which will update rpm db +In case you do, just run the below command, which will reinstall rpm packages (packages on ftp 
-for every bad package with the corrected one.+were re-signed to correct signatures). 
 + 
 +  LC_ALL=C rpm -Va --nofiledigest --nofiles --nodigest 2>&1 | \ 
 +  grep 'error: rpmdbNextIterator: skipping h#' | awk '{print $5}' | sort -u | \ 
 +  LC_ALL=C xargs -r rpm -q --qf='%{name}\n' --nosignature --querybynumber | \ 
 +  grep -vE 'package1buitmanuallyduetolicense|package2buitmanuallyduetolicense' | \ 
 +  xargs -r poldek --reinstall --pmopt=--nosignature 
 +   
 +If you get errors about some packages not available (on ftp) from poldek then try reinstalling one by one: 
 + 
 +  [...] (like above) 
 +  xargs -n 1 -r poldek --reinstall --pmopt=--nosignature 
 +   
 +And possibly uninstall packages that are no longer available and are not needed.
  
-  rpm -qa --nosignature --qf '%{name}\n' | while read p ; do 
-    rpm -V --nofiledigest --nofiles --nodigest $p 2>&1 | \ 
-      grep -Eoq "non-conformant OpenPGP implementation|no certificate was provided" && poldek -q --reinstall --justdb --pmopt=--nosignature $p 
-  done 
  
 Final words - while we could stick to rpmpgp_legacy library for now, Final words - while we could stick to rpmpgp_legacy library for now,
packages/rpm.1739057015.txt.gz · Last modified: 2025-02-09 00:23 by baggins

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS PLD Linux Driven by DokuWiki