Home BcachefsInstall Bcachefs Via Official APT Repository In Debian And Ubuntu

Install Bcachefs Via Official APT Repository In Debian And Ubuntu

By sk
Published: Updated: 1.5K views 6 mins read

Bcachefs, a robust and advanced filesystem for Linux, now has a new delivery method. This change comes after recent shifts in the core Linux kernel development process. Consequently, the development team has quickly acted. They now officially ship Bcachefs as an externally maintained DKMS module via a dedicated APT repository for Debian and Ubuntu users.

This is indeed a good news for users who rely on the impressive speed and strong data integrity features of Bcachefs. I hope this will tempt many users to install Bcachefs now on their Debian and Ubuntu systems.

Why a Dedicated APT Repository for Bcachefs?

The Bcachefs filesystem recently changed its status to "Externally maintained" in the Linux kernel. For those don't know, this status shift occurred around August 28, 2025, after Linus Torvalds indicated in June 2025 that the filesystem would likely be dropped starting with kernel version 6.17.

Therefore, the Bcachefs maintainer, Kent Overstreet, confirmed they would move forward using DKMS packages.

They asked distributions, like openSUSE, to hold off on disabling Bcachefs until kernel 6.18, because they needed time to get the DKMS version completely ready.

This transition ensures that users can still easily access and use the latest Bcachefs kernel module.

Since DKMS modules can integrate into the initramfs (the initial RAM filesystem used during boot), very little should change for end users who want to use Bcachefs as their root filesystem.

Kent also noted that he now has more free time to devote to distribution and packaging issues because the stabilization phase for the project is winding down.

The necessary DKMS support successfully landed in bcachefs-tools, thanks to help from an Arch user.

Introducing the Brand-New Bcachefs APT Repository for Debian and Ubuntu

For Debian and Ubuntu users, installing the required tools just became much simpler and more stable. We now have a dedicated APT repository ready for use. As you already know, APT is the package manager these distributions utilize.

Developers realized that the existing bcachefs-tools package in Debian was orphaned and eventually removed. Thus, creating a reliable, dedicated repository became essential.

You can find this new resource index at apt.bcachefs.org, with the index listing dated September 20, 2025. This repository includes packages targeted at current and future Debian/Ubuntu releases, specifically naming unstable, trixie, questing, plucky, and forky.

Install Bcachefs on Debian and Ubuntu Via Official APT Repository

With the launch of the official Bcachefs APT repository, installing and keeping bcachefs-tools updated is now much easier on Debian and Ubuntu systems.

Step 1: Add the Bcachefs Repository GPG Key

First, download and add the repository’s signing key:

wget -qO- https://apt.bcachefs.org/apt.bcachefs.org.asc | sudo tee /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc

You can verify the fingerprint:

EA483B991020C72A8A5035ADA0620B5E0E01C1DD

Step 2: Add the Repository to Your System

The repository setup has two important parts:

  • Distribution (URIs) → matches your Debian/Ubuntu release codename
  • Suite (Suites) → decides whether you want snapshot or release builds

Distribution Options

  • trixieDebian Stable (Debian 13)
  • forkyDebian Testing
  • unstable → Debian Sid (rolling branch)
  • plucky → Ubuntu 25.04
  • questing → Ubuntu 25.10 (development)

Suite Options

  • bcachefs-tools-snapshot: latest builds, updated often (best for testing and development)
  • bcachefs-tools-release: stable builds (best for production use)

Example Sources File

Here’s an example for Debian Trixie (Stable) with release tools:

sudo tee /etc/apt/sources.list.d/apt.bcachefs.org.sources > /dev/null <<EOS
Types: deb deb-src
URIs: https://apt.bcachefs.org/trixie/
Suites: bcachefs-tools-release
Components: main
Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
EOS

Choosing the Right Setup

CaseDistribution (URIs)Suite (Suites)Recommended Use
Debian 13 (Stable: Trixie)trixiebcachefs-tools-releaseBest choice for most users, stable setup
Debian Testing (Forky)forkybcachefs-tools-snapshot (or release)For newer software and testers
Ubuntu 25.04 (Plucky)pluckybcachefs-tools-snapshotLatest tools on a short-term Ubuntu release
Ubuntu 25.10 (Questing)questingbcachefs-tools-snapshotDevelopment branch
Debian Sid (Unstable)unstablebcachefs-tools-snapshotCutting-edge builds, developers only

Tip for beginners: If you’re unsure, use your release codename (trixie, forky, or plucky) and choose bcachefs-tools-release. Advanced users who want the latest features should choose bcachefs-tools-snapshot.

Step 3: Update Package Lists

Once the repository is added, refresh your package index:

sudo apt update

Step 4: Install Bcachefs Tools

Install the package:

sudo apt install bcachefs-tools

Step 5: Alternative Way (Using add-apt-repository)

If you prefer, you can add the repository directly with:

sudo add-apt-repository "deb https://apt.bcachefs.org/questing bcachefs-tools-release main"

(Replace questing and release with your distro and suite of choice.)

Notes and Verification:

Step 6: Create and Mount a Bcachefs Filesystem

Warning: The following commands will erase all data on the selected device. Use a test disk or partition. For the testing purpose, I will be using /dev/sdb disk.

Format the Device:

sudo mkfs.bcachefs /dev/sdb

Replace sdb with your actual partition.

You can list the partitions using lsblk command.

Create a Mount Point:

sudo mkdir -p /mnt/bcachefs

Mount the Filesystem:

sudo mount -t bcachefs /dev/sdb /mnt/bcachefs

Verify:

df -Th | grep bcachefs

Sample output would be:

/dev/sdb       bcachefs  9.3G  2.8M  9.1G   1% /mnt/bcachefs

Test it by writing a file:

echo "Hello Bcachefs" | sudo tee /mnt/bcachefs/hello.txt
cat /mnt/bcachefs/hello.txt

Unmount when done:

sudo umount /mnt/bcachefs

Optional: Automount at Boot

Get the UUID of your device:

sudo blkid /dev/sdb

Add an entry to /etc/fstab:

UUID=<UUID>  /mnt/bcachefs  bcachefs  defaults  0  0

What This Means for Users

By using DKMS packages distributed via this dedicated APT repository, very little should change for end users once the packages are set up. This includes being able to use Bcachefs as a root filesystem, as DKMS modules can be included in an initramfs just like any other kernel module.

This packaging effort aims to resolve previous issues where obtaining up-to-date Bcachefs tools was often non-trivial for Debian users, who typically had to resort to compiling from source. Now, Bcachefs packages are available via a dedicated APT repository.

Bcachefs Advantages

If you are just learning about Bcachefs, you should know that it offers powerful and compelling advantages over other filesystems.

  • Ultimate Reliability: Bcachefs emphasizes reliability and robustness. It utilizes copy-on-write (COW) technology, similar to ZFS, which enables full data and metadata checksumming. This system means the filesystem should always detect and often recover from damage.
  • Advanced Features: Furthermore, it provides sophisticated features right out of the box, like multi-device functionality, replication, compression, and snapshots. It offers these features while also aiming to outperform ZFS in terms of speed and reliability.
  • Built for Growth: The filesystem is designed for petabyte scalability and features a full, online fsck utility. The repair process is comprehensive; therefore, Bcachefs will repair damage and keep going, usually without user intervention.

The creation of the dedicated APT repository shows the Bcachefs team's strong focus on making the filesystem accessible and easy to use, regardless of its in-kernel status.

I hope the Bcachefs team will continue to build a healthy community focused on ensuring the code works reliably in the real world.

Conclusion

With the official Bcachefs APT repository, you can now install bcachefs-tools on Debian and Ubuntu with ease.

Beginners can stick with the release suite for stability, while advanced users may prefer the snapshot builds to test the latest features.

Once installed, creating and mounting a Bcachefs filesystem is straightforward, and you can start taking advantage of this next-generation Linux filesystem.

You May Also Like

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More