RakuOS fixes the one thing that annoys me most about immutable Linux distros

2 days ago 8
RakuOS
Jack Wallen/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET's key takeaways

  • RakuOS is a hybrid immutable/standard Linux distro
  • With RakuOS you get the best of both worlds with security and usability.
  • RakuOS can be downloaded and installed for free.

Immutable Linux is about as secure as an OS can get. By mounting certain directories as read-only, malicious code or bad actors cannot affect the data within. I could seriously place my full faith in immutable Linux and not worry about a thing.

Until I wanted to install an application using the distribution's built-in package manager.

With immutable Linux distributions, software is typically installed via containers, such as Flatpak or Snap. Installation of apps is done this way because of the read-only nature of certain directories. Because of that, standard package managers cannot install the necessary files, so using the likes of apt, dnf, or pacman is a no-go.

Also: What is immutable Linux? Here's why you'd run an immutable Linux distro

Does that mean you're limited to the apps you have available on an immutable distribution? Somewhat. Don't get me wrong, the average user won't feel as if they're missing out on anything because Flathub and Snapcraft have tons of apps.

But when I'm using an immutable distribution, and I want to install something like Ollama, I'm out of luck if I want to ensure I'm using the latest version of the app (I currently run Ollama 0.30.7 on my Pop!_OS desktop). I've attempted to install Ollama via Flatpak, and although the command completes, the app is nowhere to be found. I've tried several times, but the end result is a failure. However, running the command sudo dnf install ollama works just fine; it shouldn't, but it does.

Why should the DNF command fail? Because RakuOS is immutable, installing via DNF shouldn't be possible. That's where RakuOS says, nay, nay. How does RakuOS pull this off? According to the official site, "RakuOS uses a persistent overlay system mounted directly on /usr. Your base system is always pristine -- but you can install any native package you want, and it survives every system update."

Also: How to run a Windows app on Linux with Wine

With this hybrid system, you get:

  • An immutable base system with instant bootc rollback.
  • Native packages that automatically persist across updates.
  • Allows installation via dnf, dnf5, or the RakuOS Software Center.
  • A pristine system reset with a single command (more on that in a bit).
  • Flatpak for sandboxed apps (heightened security) and native packages for everything else.

In other words, you get the best of both worlds.

My experience with RakuOS

RakuOS

The RakuOS desktop might not be the most elegant desktop on the market, but it's still pretty special.

Jack Wallen/ZDNET

The thing I appreciated the most about RakuOS is that, while it had all of the underpinnings of an immutable distribution, it still felt like a traditional Linux OS. The only difference was that instead of the KDE Plasma Discover app store, there was the RakuOS Software app store. The good news is that the RakuOS Software app looked and behaved similarly to that of Discover.

RakuOS

The RakuOS App Store is quite user-friendly.

Jack Wallen/ZDNET

With RakuOS, I was able to install all of the software I normally would use via a combination of Flatpak and DNF. If I wanted to install an app with the added security of isolation, I used Flatpak; otherwise, I dove into DNF.

Also: 5 Linux distros that take a little work out of the box, but are so worth the effort

As far as performance is concerned, RakuOS uses the CachyOS kernel, so it's built for speed. No matter what I threw at the desktop, it didn't bat an eye. Even running a hefty Ollama query (writing a Python GUI app) didn't slow the machine down.

RakuOS

It's hard to beat the CachyOS kernel.

Jack Wallen/ZDNET

That CachyOS kernel is something special, and the RakuOS devs were smart to include it.

But then, my curiosity got the best of me, and I decided to try the "pristine reset" option to see how well it worked. After installing several apps and saving some files/data to my home directory, I scoured the RakuOS website for any mention of the actual command used for this, but found nothing.

Given how RakuOS creates the overlay in /usr, I thought, "What happens if I simply remove everything in /usr? Couldn't hurt, right? I am running RakuOS as a virtual machine, so if it does FUBAR the system, I can spin up another VM without much trouble. 

Ergo, I issued the command:

sudo rm -rf /usr/

That was a bit nerve-racking.

A quick restart to see what the results were, only to find the restart failed. I forced the VM off and then restarted. The boot process took considerably longer than I would have expected, but then, given that I'd nuked the /usr directory, I'm thinking maybe RakuOS had to rebuild it. 

Also: I tried a Linux distro that promises free, built-in AI - and things got weird

Maybe?

I waited, and waited, and waited. 

No dice.

Once more unto the breach with a reboot, and the same issue persisted. Time to reinstall. This time around, I remembered that RakuOS was based on OSTree, so the command was simple:

sudo rpm-ostree reset

Even someone who's used a piece of technology for decades can get tripped up now and then.

The second time around, everything went well, and I wound up with a pristine OS (after installation, use, and resetting with the proper command).

My final thought on RakuOS is this: I'm impressed. This Linux distribution gives users the best of both worlds: immutability with the ability to use default package managers. Although installation takes a bit longer than I'm used to, the end result is very much worth the time invested. 

If you're looking for an OS that is equal parts secure and user-friendly, give RakuOS a try. You can download an ISO for the KDE Plasma, GNOME, or COSMIC versions, create a bootable USB drive, and install it.

If you're already running a Fedora Atomic-based distro, you can reset with:

sudo rpm-ostree reset

And then you can rebase to RakuOS with one of the following commands:

Read Entire Article