[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Package ordering
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: Package ordering
- Date: Wed, 23 Jan 2002 10:04:17 -0500
On Wed, Jan 23, 2002 at 09:40:26AM -0500, Peter Bowen wrote:
> Is there any way to get RPM to have a specific order for two packages
> without putting either an Obsoletes, Requires, or PreReq tag in the spec
> files?
Package ordering is done solely through Requires: and PreReq:. Obsoletes:
is just a variant of -U where the package to be removed is added to the
transaction set immediately after the package to be installed.
So, the answer is no. Well, there's always
rpm -U --nodeps C B A
which will install C B A in exactly the order given on the command line.
>
> I have a package that tests whether a file exists and is writable in the
> %post script, but it works fine if the file doesn't exist. This is fine
> when installing a single package, but if I'm installing a bunch,
> including the one that provides the file in question, there seems to be
> no guarantee of the order they are installed. Would using Conflicts
> affect the file ordering, or is there no good way to do it?
No way at all, nor is "good" meaningful here IMHO.
Try duplicating the file creation in %post of both packages to remove the
implicit ordering requirement, 1st package installed creates the file,
other packages just use.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]