What can do about packaging shell configurations?

I’m trying to create a distribution based off of Fedora using livecd-creator and I would like to package up some config files in /etc/skel to change things around. For modifying things like desktop environments, this is a no-brainer. But in the case of the .bashrc and .zshrc files, this creates a package conflict since there are already /etc/skel/.zshrc and /etc/skel/.bashrc.

What can I do about this? Also, why is this set up this way when /etc/zshrc and /etc/bashrc already exist?

You can customize these files e.g. in a %post script (easy) or change the srpm to the rpm you want and create your own repository (more work).

The /etc/zshrc and /etc/bashrc are system wide configurations.
The .bashrc and .zshrc in /etc/skel are to put in $HOME when creating a new user.

1 Like

Both ideas don’t seem ideal… but I’ll probably try the %post script one. Thanks for the info!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.