"skidley" <[EMAIL PROTECTED]> writes:
> I'm trying to come up with a simple script to update my system(cooker)
> as a cron job. I've tried a few variations without success. I assumed
a
> couple of options for urpmi would work, for eg.
> urpmi.update -a && urpmi --auto --force --auto-select
> I assumed from reading the manpage that --auto would skip the
dependencies
> question and it does but i also thought --force would automatically
> answer yes to any questions. one in particular a question about bad
> signatures which i always get, and --force doesn't make it just say
yes and
> continue. I have also tried echo y |urpmi --force --auto --auto-select
> without success. I wonder if anybody has a nice working update script?
/etc/cron.daily/urpmi:
=======================================================================
#!/bin/sh
urpmi.update -a; urpmi --auto-select --auto --no-verify-rpm
for d in /usr/lib/{kde,kde3,qt3/lib}; do
[[ -d $d ]] && find $d -type f -name "*.so*" | xargs strip -sp
done
strip -sp
/usr/lib/{kicker,kde*,konsole,kwin,lib{DCOP,kabc,kate,konq,mcop,kde*,arts*,khtml,kio}}.so.*
#export RPM_BUILD_ROOT=/opt
#/usr/lib/rpm/brp-strip-shared
#/usr/lib/rpm/brp-strip-comment-note
#/usr/lib/rpm/brp-strip
rpm --rebuilddb
=======================================================================
I tried your above script Thierry and it worked great up until it started the strip.
At that point my desktop blanked except for the background and after a while, I was
logged out of KDE. Any thoughts on this?
Thanks,
--
Jason Komar <[EMAIL PROTECTED]>
Lubetec