---
name: "bspatch"
section: "1"
platform: "linux"
package: "bsdiff"
version: "4.3-23"
release: "Debian 13 (Trixie)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/bspatch"
---

# bspatch(1)

apply a patch built with bsdiff(1)

## NAME

**bspatch** – apply a patch built with [bsdiff(1)](/bsdiff/1.md)

## SYNOPSIS

**bspatch** ⟨*oldfile*⟩ ⟨*newfile*⟩ ⟨*patchfile*⟩

## DESCRIPTION

**bspatch** generates ⟨*newfile*⟩ from ⟨*oldfile*⟩ and ⟨*patchfile*⟩ where ⟨*patchfile*⟩ is a binary patch built by [bsdiff(1)](/bsdiff/1.md).

**bspatch** uses memory equal to the size of  ⟨*oldfile*⟩ plus the size of  ⟨*newfile*⟩, but can tolerate a very small working set without a dramatic loss of performance.

## SEE ALSO

[bsdiff(1)](/bsdiff/1.md)

## AUTHORS

Colin Percival ⟨cperciva@freebsd.org⟩
