PLDWWW: RPM5

baggins baggins at pld-linux.org
Mon Sep 17 14:09:28 CEST 2012


Author: baggins   Date: Mon Sep 17 12:09:28 2012 GMT
Module: PLDWWW   URL: http://www.pld-linux.org/RPM5?action=diff&rev2=4&rev1=3
---- Log message:


---- Page affected: RPM5

---- Diffs:

================================================================
  
  === Fixing database problems ===
  
- You can't just do '`rm -rf /var/lib/rpm/__db`' to fix problems anymore, also '''--rebuilddb''' is largely obsolete in rpm-5.3.x and isn't likely to "fix" anything. Instead:
+ You can't just do `'rm -rf /var/lib/rpm/__db'` to fix problems anymore, also '''--rebuilddb''' is largely obsolete in rpm-5.3.x and isn't likely to "fix" anything. Instead:
  {{{
  cd /var/lib/rpm
  dbX.Y_recover -ev
@@ -17, +17 @@

  === Querying database ===
  
  The semantics of rpm query option '''-f''' ('''--file''') has changed in rpm 5.x;
- '`rpm -q -f <file-with-path>`' will '''not''' resolve all symlinks in queried file's path.
+ `'rpm -q -f <file-with-path>'` will '''not''' resolve all symlinks in queried file's path.
  So the query (assuming ''/usr/src/linux'' is a symlink to ''/usr/src/linux-A.B.C-R''):
  {{{
  rpm -q -f /usr/src/linux/include/linux/fs.h
  }}}
  That returned ''kernel-headers-A.B.C-R.arch.rpm'' with old rpm, will return nothing with rpm 5.x.
- You have to do '`readlink -f`' first, or change to symlinked directory and do relative path query.
+ You have to do `'readlink -f'` first, or change to symlinked directory and do relative path query.
  
  == Packaging changes ==
  


More information about the pld-cvs-commit mailing list