---
title: Install rembg on Linux | Snap Store
description: Get the latest version of rembg for Linux - Remove image backgrounds
  from the command line or a local web UI
url: https://snapcraft.io/rembg
---

# rembg

[Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")

* [Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")
* [Development](https://snapcraft.io/search?categories=development)
* [Photo and Video](https://snapcraft.io/search?categories=photo-and-video)

latest/stable 2.0.86

Install latest/stable of rembg

---

**Install using the command line**

```
sudo snap install rembg
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* rembg

---

### License

* MIT

---

### Last updated

* 3 November 2026 - latest/stable
* 3 November 2026 - latest/candidate

---

### Websites

* [github.com/danielgatis/rembg](https://github.com/danielgatis/rembg "https://github.com/danielgatis/rembg")

---

### Contact

* [github.com/sidalit/rembg-snap/issues](https://github.com/sidalit/rembg-snap/issues "https://github.com/sidalit/rembg-snap/issues")

---

### Source code

* [github.com/danielgatis/rembg](https://github.com/danielgatis/rembg "https://github.com/danielgatis/rembg")
* [github.com/sidalit/rembg-snap](https://github.com/sidalit/rembg-snap "https://github.com/sidalit/rembg-snap")

---

### Report a bug

* [github.com/danielgatis/rembg/issues](https://github.com/danielgatis/rembg/issues "https://github.com/danielgatis/rembg/issues")
* [github.com/sidalit/rembg-snap/issues](https://github.com/sidalit/rembg-snap/issues "https://github.com/sidalit/rembg-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/rembg#report-snap-modal)

---

* [Description](https://snapcraft.io/rembg#tab-description)
* [Security](https://snapcraft.io/rembg#tab-security)

#### Remove image backgrounds from the command line or a local web UI

rembg removes the background from images with pretrained segmentation
models (U2-Net, BiRefNet, BRIA RMBG, SAM and others) with ONNX Runtime.
It processes single files, whole folders, binary streams, or serves an
HTTP API with a browser interface. CPU support is included; NVIDIA GPU
support is available through the optional cuda component.

**Examples**

```
rembg i ~/Pictures/photo.jpg ~/Pictures/photo-cut.png
rembg i -m birefnet-general -a ~/Pictures/photo.jpg out.png
rembg p ~/Pictures/input ~/Pictures/output
cat photo.jpg | rembg i > photo-cut.png
rembg s
rembg d bria-rmbg
```

**Models**

Models are downloaded on first use and kept in
~/snap/rembg/common/models, which survives snap refreshes. Custom models
passed with model\_path must be placed under ~/snap/rembg/common.

**File access**

rembg can use images in your home directory. To also use USB drives and
other removable media (/media, /mnt), run:

```
sudo snap connect rembg:removable-media
```

---

## Install rembg on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/rembg/arch)

[### CentOS](https://snapcraft.io/install/rembg/centos)

[### Debian](https://snapcraft.io/install/rembg/debian)

[### elementary OS](https://snapcraft.io/install/rembg/elementary)

[### Fedora](https://snapcraft.io/install/rembg/fedora)

[### KDE Neon](https://snapcraft.io/install/rembg/kde-neon)

[### Kubuntu](https://snapcraft.io/install/rembg/kubuntu)

[### Manjaro](https://snapcraft.io/install/rembg/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/rembg/pop)

[### openSUSE](https://snapcraft.io/install/rembg/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/rembg/rhel)

[### Ubuntu](https://snapcraft.io/install/rembg/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/rembg/raspbian)
