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

Re: force-overwrite in pdebuild

On Sun, Aug 05, 2007 at 06:48:49PM +0200, Gudjon I. Gudjonsson wrote:
> Hi
>    I was trying to rebuild my packages against a new version of library but there
> is a bug in the libraries that one file is in two packages. Is there any way of letting
> pdebuild force and overwrite of files?
You can either run dpkg --force-overwrite while installing it
(preferrably with only one package for finer-grained control of when
the force is in effect).

Or add Replaces: foo to the package to be installed, which will cause
the file to be removed from the already-installed packages file list
(/v/l/dpkg/info).  If you remove the 2nd package before the 1st
package though, the file will be gone (and the copy from the 1st
package will not be put back into place).

I note that Conflicts+Replaces is a special overloaded case that means
"cause that package to be completely removed".


Reply to: