[arch-general] Howto - tell pacman -S (-U) to overwrite existing file in filesystem?

Allan McRae allan at archlinux.org
Sun Feb 20 18:37:35 EST 2011

On 21/02/11 07:32, David C. Rankin wrote:
>    I get that. The question is "Can I do something in the PKGBUILD to tell pacman
> - if the file is already there ->  overwrite it?" The purpose for the question is
> make sure nobody else gets a conflict if they have followed a prior manual
> Trinity kdm install proceedure.

I haven't tested this so I could be entirely wrong...   but have you 
tried adding that file to the backup array in the PKGBUILD?   From 
memory that will move the original file to *.orig and install the new one.


More information about the arch-general mailing list