this post was submitted on 20 Mar 2025
45 points (97.9% liked)

Linux

6596 readers
364 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

The Linux Ship of Theseus

Crossposted from: https://lemmy.ml/post/27387345

  1. pick any distro and install it.
  2. Then, without installing another distro over the top of it, slowly convert it into another distro by replacing package managers, installed packages, and configurations.
  • System must be usable and fully native to the new distro (all old packages replaced with new ones).
  • No flatpaks, avoid snaps where physically possible, native packages only.

Difficulties:

  • Easy: pick two similar distros, such as Ubuntu and Debian or Manjaro and Arch and go from the base to the derivative.
  • Medium: Same as easy but go from the derivative to the base.
  • Hard: Pick two disparate distros like Debian and Artix and go from one to the other.
  • Nightmare: Make a self-compiled distro your target.

Clarifications

  • chroot, dd, debootstrap, and partition editors that allow you to install the new system in an empty container or blanket-overwrite the old system go against the spirit of this challenge.
  • These are very useful and valid tools under a normal context and I strongly recommend learning them.
  • You can use them if you prefer, but The ship of Theseus was replaced one board at a time. We are trying to avoid dropping a new ship in the harbor and tugging the old one out.
  • It may however be a good idea to use them to test out the target system in a safe environment as you perform the migration back in the real root, so you have a reference to go by.
top 7 comments
sorted by: hot top controversial new old
[–] Mac@mander.xyz 5 points 1 day ago (1 children)
[–] Kissaki@programming.dev 3 points 1 day ago

with a risk of it becoming a speeddeathrun

[–] vk6flab@lemmy.radio 10 points 2 days ago

Very cool idea and a fun project if you have a masochistic streak or a unique use case.

Also .. would running the other distro inside a docker container qualify because the processes are actually running on the same kernel albeit side-by-side with the native OS, or is this disqualified like using chroot?

[–] nyan@lemmy.cafe 2 points 1 day ago

Hmm. Considering the number of packages in a Gentoo base system and what package.provided does, [anything]->Gentoo shouldn't be that difficult. Of course, whether "work your way through about twenty packages one at a time, then just uninstall the rest of the old system and reinstall everything using Portage" violates the spirit of the challenge is another question.

[–] quantenzitrone 6 points 2 days ago (1 children)

Its pretty easy to convert any distro to NixOS. This however is not a ship of theseus process.

[–] toothbrush@lemmy.blahaj.zone 3 points 2 days ago

Same with guix.

[–] possiblylinux127@lemmy.zip 1 points 2 days ago

I would be way more interested in a reinstall without physical access. I want an Ansible playbook that reinstalls my OS