Re: RHEL 4 package deps?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-10-10 at 14:50 -0400, Bill Nottingham wrote:
> Brian Long (brilong@xxxxxxxxx) said: 
> > > emacs requires fonts-xorg-75dpi, which requires chkfontpath, ttmkfdir,
> > > etc.
> > 
> > Alright, Bill, thanks for looking those up.  So tell me why rpm lets me
> > remove chkfontpath without complaining  :-)
> 
> If I had to guess, fonts-xorg-75dpi has:
> 
> Requires(post): chkconftpath
> 
> i.e., it only requires it in the post script. Since it's not a
> generic runtime dependency, it lets you remove it once the fonts
> package has successfully installed.
> 
> (This means that the next time the font package gets upgraded,
> chkfontpath, etc. will get reinstalled...)

I downloaded the .SPEC and verified.  You are correct.  I've been
writing RPMs for a while, but didn't realize you could specify Requires
(post) or Requires(postun).  What is the point?  If it's required for
post and postun, why not just make it a requires so dumb end users like
me don't remove the other RPM like chkfontpath?  :)

/Brian/

-- 
       Brian Long                      |         |           |
       IT Data Center Systems          |       .|||.       .|||.
       Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
       Phone: (919) 392-7363           |   C i s c o   S y s t e m s


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux