[Yum] Invoking RPM with --replacefiles to install configuration files

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

 



On Thu, 2005-06-30 at 18:57 -0700, Matthew Braithwaite wrote:
> I have an RPM of /etc/sudoers which I'd like to install with yum.
> Unfortunately, /etc/sudoers is also claimed by RedHat's sudo RPM, so
> the only way I've been able to install my RPM so far is with "rpm
> --replacefiles".
> 
> An option to use --replacefiles has been added to OpenDarwin's fork of
> yum, but so far as I can tell this feature is not available in the
> canonical yum.
> 
> Any advice?  If there's a way to fix the spec file of my /etc/sudoers
> RPM so that --replacefiles isn't required, that'd be great, but I
> haven't been able to figure out how to do this.

Since we want to use Red Hat's supported sudo RPM, we have our sudoers
RPM install /etc/sudoers.cisco.  Then %post copies it on top
of /etc/sudoers.

/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]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux