You are not logged in.

#1 2008-08-24 10:57:40

wantilles
Member
From: Athens - Greece
Registered: 2007-03-29
Posts: 327

How do I replace existing files with install?

Install complains if it installes existing files in filesystems and does not install them.

Is there any way to force overwriting existing files?

Looking into the man page, I believe the switch "--backup=off" should do it, however it does not work.

Either I misunderstand what the man page says, or this is not the way it should be done.

Install is very useful in PKGBUILDs because it can change the attributes-permissions of files as it moves them to their intended destination directory.

Example from a PKGBUILD:

  install --backup=off -m644 *.ttf ${startdir}/pkg/usr/share/fonts/TTF/

Last edited by wantilles (2008-08-24 10:58:51)

Offline

Board footer

Powered by FluxBB