Quoting Chmouel Boudjnah ([EMAIL PROTECTED]):
[...]
| Which Package ?? everything ?

There were two copies of about 90 % of the installed packages. But definatly
not 100 %.
Of course I have deleted the output of 'rpm -qa' (anything else would be
smart), but I have the script I made to sort the package list (the packages
came in two bulks - first the oldest and then the 'real' ones).

Maybe someone else could try it (it didn't notice anything myself until
I uninstalled a package and found out it was still there, only with a
different version number).

Do: rpm -qa > /tmp/a.txt
and run this perl script:

#!/usr/bin/perl
$file="/tmp/a.txt";
open (FILE, $file) || die "Can't find: $file\n";
while (<FILE>) {
  push (@files, $_)
}
close FILE;
@sorted = sort @files;
print @sorted;
exit; 

| Try :
| rpm -Va > /tmp/log; grep '^missing' /tmp/log 
| 
| and tell me what file is missed.

'files' would be more correct. The log file can be viewed here:

  http://linux.origo.no/~magnus/log

| > It probably took with it some of the files from the new packages
| > too, so I'm not sure if everything works now (I can't compile
| > ssh although I have all the devel packages needed).
| 
| Message Error please. How do you compile ssh with the src.rpm or with
| the simple tar.gz.

The latter.
I believe I reinstalled the glibc-devel package, and got rid of the
first error message I received, but I gave up when make didn't get
much further.

(after ./configure)
# make
gcc -pipe -c -I.  -I./gmp-2.0.2-ssh-2 -I./zlib-1.0.4 -DHAVE_CONFIG_H  
-DHOST_KEY_FILE=\"/etc/ssh_host_key\" -DHOST_CONFIG_FILE=\"/etc/ssh_config\" 
-DSERVER_CONFIG_FILE=\"/etc/sshd_config\" -DSSH_PROGRAM=\"/usr/local/bin/ssh1\" 
-DETCDIR=\"/etc\" -DPIDDIR=\"/var/run\" -DSSH_BINDIR=\"/usr/local/bin\" 
-DTIS_MAP_FILE=\"/etc/sshd_tis.map\" -g -O2  ssh.c
ssh.c: In function `main':
ssh.c:406: storage size of `ws' isn't known
ssh.c:882: `TIOCGWINSZ' undeclared (first use this function)
ssh.c:882: (Each undeclared identifier is reported only once
ssh.c:882: for each function it appears in.)
make: *** [ssh.o] Error 1


I now plan to insert the cd-rom and execute:

rpm -qa | xargs -i rpm -Uvh --force {} {}.i386.rpm

  and

rpm -qa | xargs -i rpm -Uvh --force {} {}.noarch.rpm 

Wish me luck :)

- Magnus

Reply via email to