"equery check package" compares current with the as installed checksum
(or something like that!) for the packages files.

emerge -ep world > a
edit "a" to add "equery check " before each package name
run "sh a > b" and got hrough the list in b to see whats broke - lots of
debris - config files etc will show as failing a checksum, so ignore
them.  Also ".a" libraries may not be broke, but a side effect of
lafilefixer - need to check that one.  prelink apparently doesnt affect
(or maybe updates) the checksum.

I am sure someone probably has a utility able to automate the process -
anyone?

BillK

e.g.,
myth2 ~ # equery check gcc
[ Checking sys-devel/gcc-4.3.4 ]
!!! /usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/f951 has incorrect md5sum
!!! /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/32/libgfortran.so.3.0.0 has
incorrect md5sum
!!! /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libgcc.a has incorrect md5sum
!!! /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libmudflapth.so.0.0.0 has
incorrect md5sum
!!! /usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/locale/tr/LC_MESSAGES/gcc.mo 
has incorrect md5sum
!!! /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/32/libgfortran.a has
incorrect md5sum
!!! /etc/env.d/gcc/x86_64-pc-linux-gnu-4.3.4 has incorrect md5sum
!!! /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g
++-v4/bits/boost_concept_check.h has incorrect md5sum
!!! /usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/tree1 has incorrect
md5sum
!!! /usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/locale/es/LC_MESSAGES/gcc.mo 
has incorrect md5sum
 * 944 out of 954 files good
myth2 ~ #

Yeah my gcc is broke and wont rebuild :( 


On Fri, 2010-02-12 at 19:55 +0000, Alan Mackenzie wrote:
> Hi, Gentoo!
> 
> As reported in other threads, my new PC had a broken RAM stick in it.
> As a result, an unknown proportion of installed binaries are flaky.  One
> non-functioning binary is probably GCC.
> 
> What I'd like to do is reinstall every binary, yet without erasing any
> configuration info, whose creation was so arduous.
> 
> Where does portage keep it's list of installed packages?  What do I have
> to do to persuade portage it has _no_ installed packages before doing
> 'rm -rf *' in /bin, /sbin, /usr/bin, /usr/sbin?
> 
> Has anybody any other tips to offer me for this operation?
> 
-- 
William Kenworthy <bi...@iinet.net.au>
Home in Perth!


Reply via email to