On Sun, Aug 10, 2003 at 06:00:10PM -0400, David Z Maze wrote:
> Micha Feigin <[EMAIL PROTECTED]> writes:
> > I have had some problems with a package, so I tried to remove some off
> > the files and reinstall with dpkg -i to regenrate the files.
> 
> Are they configuration files (to a first approximation, "files in
> /etc")?  If so, dpkg considers deleting the file as a valid
> configuration option, and will preserve this across upgrades.  If you
> purge the package ('dpkg --purge') and then reinstall it, you'll get
> back the default configuration files.  (Generally you don't want to
> use a --force option at all in Debian, but this is the exception that
> proves the rule; 'dpkg --purge --force-depends xlibs-data' is actually
> reasonable to do if you're doing it with the intention of immediately
> reinstalling the package.)

Alternatively, if they're dpkg-handled configuration files
("conffiles"), you can avoid the need to purge and reinstall like this:

  dpkg -i --force-confmiss xlibs-data.deb

Cheers,

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to