On Wed, Oct 01, 2003, Matthias Kurz wrote:
> On Tue, Sep 30, 2003 at 03:45:23PM -0400, Dennis McRitchie wrote:
> > Hi,
> >
> > What is the recommended way to reinstall the same package [...]
> > rpm -e openldap.....
> > rpm -Uvh openldap.....
> >
Please note that, beginning with OpenPKG v1.3, -e (erase) will remove
default (not created) data, logs (!), pidfiles and "run" information
from the %{l_prefix}/var/%{name}/ directory.
> > 1) Is there a better way?
> >
I would prefer "-Uvh --force" instead. According to my experience, this
might tamper with your configuration, so check this afterwards.
> I have another problem. I use some machines as "masters", where the
> software is build from sources. Then the generated binary packages
> are installed on other machines.
>
> I upgraded the machines that build from sources with
> openpkg build -i -g -u openssl | sh
>
For standalone machines and "masters" as you describe them, a "openpkg
build -Ua" should be sufficent. I tried it on some instances and the
results looked fine. It even detected packages which used openssl due to
a conditional "with_xxx" option. As the generated script uses "--force",
don't forget to check the configuration.
Being a little paranoid i also executed
$ for i in `/cw/bin/rpm -q --whatrequires openssl`; do \
/cw/bin/rpm -qi $i | grep "Build Time"; \
done
and checked if all eventually installed packages that directly depend on
openssl have been built recently. Needless to say, the last action is
always to test the final results.
> But when i try this with binary packages
> openpkg build -p <platform>
> -r ftp://bla/.../RPM/PKG
> -f ftp://bla/.../RPM/PKG/00INDEX.rdf.bz2
> -i -g -u
> I get
> FATAL: cannot find source for 'openssl'
>
If your command listing above is complete it looks like you forgot to
create a new index.
--
[EMAIL PROTECTED], Cable & Wireless
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]