---
title: Install libc-shm-shim on Linux | Snap Store
description: Get the latest version of libc-shm-shim for Linux - glibc snap shim to
  redirect used sharem memory into snap permited path
url: https://snapcraft.io/libc-shm-shim
---

# libc-shm-shim

[Ondrej Kubik (ondra)](https://snapcraft.io/publisher/ondra "View all snaps from Ondrej Kubik (ondra)")

* [Ondrej Kubik (ondra)](https://snapcraft.io/publisher/ondra "View all snaps from Ondrej Kubik (ondra)")

latest/beta 2.27-3ubuntu1.6

Install latest/beta of libc-shm-shim

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install libc-shm-shim --beta
```

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

libc-shm-shim is only available on the unstable beta channel. It could break and change often.

---

### Package name

* libc-shm-shim

---

### License

* unset

---

### Last updated

* 16 January 2024 - latest/beta
* 29 July 2026 - 22/edge

---

##### Report a Snap Store violation

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

---

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

#### glibc snap shim to redirect used sharem memory into snap permited path

# snap-glibc-shm-shim
glibc snap shim to redirect used sharem memory into snap permited path

use `SNAP_SHM_SUB_DIR` or `SNAP_SHM_PREFIX` evn variable to control functionality.
`SNAP_SHM_SUB_DIR` will use sub dir under `/dev/shm` eg. `/dev/shm/snap.<snap-name>./*`
`SNAP_SHM_PREFIX` adds prefix to the file name eg `/dev/shm/snap.<snap-name>.*`

include either of the env variables in your snap environment:
`SNAP_SHM_SUB_DIR="snap.${SNAP_NAME}."`
`SNAP_SHM_PREFIX="snap.${SNAP_NAME}."`

snapcraft.yaml example
```
environment:
SNAP\_SHM\_PREFIX: "snap.${SNAP\_NAME}."

parts:
libc-shm-shim:
plugin: nil
stage-snaps:
- libc-shm-shim/18/beta
```

---

## Install libc-shm-shim 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/libc-shm-shim/arch)

[### CentOS](https://snapcraft.io/install/libc-shm-shim/centos)

[### Debian](https://snapcraft.io/install/libc-shm-shim/debian)

[### elementary OS](https://snapcraft.io/install/libc-shm-shim/elementary)

[### Fedora](https://snapcraft.io/install/libc-shm-shim/fedora)

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

[### Kubuntu](https://snapcraft.io/install/libc-shm-shim/kubuntu)

[### Manjaro](https://snapcraft.io/install/libc-shm-shim/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/libc-shm-shim/pop)

[### openSUSE](https://snapcraft.io/install/libc-shm-shim/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/libc-shm-shim/rhel)

[### Ubuntu](https://snapcraft.io/install/libc-shm-shim/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/libc-shm-shim/raspbian)
