pkginfo db recovery



Hi All,

After applying several patch on Sun OS 10 6/06 system failure re-sync
up the broke mirror got corrupted my /var filesystem pkg db located at
/var/sadm/pkg

when i type pkginfo -l and pkginfo following error, due to that i
can't add or remove any sun packages which use pkg* commands,

# pkginfo -l
pkginfo: ERROR: bad entry read in contents file
pathname: Unknown
problem: unknown ftype

#pkginfo
ALE SUNWcacx Simplified Chinese
AccessX client program
ALE SUNWcadis Simplified Chinese install software
ALE SUNWcadma Simplified Chinese System
administration applications
pkginfo: ERROR: pkginfo file is corrupt or missing

is it possible to rebuild the DB ? I don't have a backup of the /var
currently ..

Thanks,
Chanka Perera
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: The pkg-repository - Solaris equivalent of rpm
    ... Or just run pkginfo with no arguments. ... |2) When did I install them? ... Working for, but definitely not speaking for, Sun Microsystems, Inc. ...
    (comp.unix.solaris)
  • Re: is it possible to repair pkginfo?
    ... But now, pkginfo is corrupted: ... pkginfo: ERROR: pkginfo file is corrupt or missing ... I think it's related to SUNWswmt, because i was trying to install patch ... ultra20-root% truss pkgrm SUNWswmt ...
    (comp.sys.sun.admin)
  • Re: is it possible to repair pkginfo?
    ... But now, pkginfo is corrupted: ... pkginfo: ERROR: pkginfo file is corrupt or missing ... ultra20-root% truss pkgrm SUNWswmt ... Received signal #11, SIGSEGV ...
    (comp.sys.sun.admin)
  • is it possible to repair pkginfo?
    ... But now, pkginfo is corrupted: ... pkginfo: ERROR: pkginfo file is corrupt or missing ... ultra20-root% truss pkgrm SUNWswmt ... Received signal #11, SIGSEGV ...
    (comp.sys.sun.admin)