Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

This question was marked as an exact duplicate of an existing question.

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

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