Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

you know that you can't make a .deb package that replaces a file on the system which belong to another package, but i need to create a .deb package for the settings (gnome-settings,kde-settings, in the system disk not in the home) so i need to replace the file.

is there any way i can do that in somehow? thanks.

share|improve this question
add comment

marked as duplicate by Gilles, Eric Carvalho, bcbc, user68186, Basharat Sial May 9 '13 at 19:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

I do know that you can make a post install script, so it may be possible to use echo to write over it in the post install script (i.e. echo "Your settings here" > /etc/file.conf) The documentation is all here

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.