Subject: Re: equivalent to 'make replace' for binary packages?
To: Steven M. Bellovin <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 05/10/2005 10:34:05
On Tue, 10 May 2005, Steven M. Bellovin wrote:

> Is there an option to pkg_add that is the equivalent of 'make replace'?

No, because it doesn't do the pkg_tarup. But you can replicate it:

Install pkgtools/pkg_tarup.

pkg_tarup the package to replace.

The pkg_add -u switch can be used to replace a package. It also
saves the +REQUIRED_BY file.

Or you could do:

Save the old /var/db/pkg/OLDPACKAGE/+REQUIRED_BY

pkg_delete the old package

pkg_add the new package

Mv the +REQUIRED_BY into place (for new package).

(It also modifies +CONTENTS file's @pkgdep entries, but I don't think that

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links