On Thu, Nov 07, 2002 at 06:09:22PM +0100, Thierry Vignaud wrote:
> "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
> =======================================================================
>
Thanks for the script but why the strip, what does that actually do?
--
"If you don't eat your meat, you can't have any pudding! How can you have any
pudding if you don't eat your meat!" --Pink Floyd
Chad Y. (aka skidley)