The Linux Ship of Theseus

  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.

EDIT: Some clarification on some of the clever tools brought up here:

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.


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.

  • NicolaHaskell@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 hour ago

    without installing another distro over the top of it … [replace] package managers

    The package manager is the distro, though.

    $ pacman -S apk-tools
    $ apk add alpine-base linux-lts
    

    Then kexec to alpine’s kernel and the initramfs generated by its installation (which would incidentally “replace” PID 1 with the new /sbin/init). For clean up you could take a diff of “tar -t” for all the installed packages from both distros then delete the files only in the old distro’s packages.

    Make a self-compiled distro your target.

    Replace the first step with a compilation of apk, abuild everything required by alpine-base and linux-lts (git clone aports to bootstrap that work), then add the package directory to /etc/apk/repositories before the second step. Next, begin to worry that you haven’t fully broken free yet, replace abuild with a bespoke mybuild and apk with tar -x, grapple with signed binaries, reflect on your own identity and authenticity, then take a tour through gentoo and find yourself missing the $HOME you left and its familiar comforts.

  • BeardedGingerWonder@feddit.uk
    link
    fedilink
    English
    arrow-up
    7
    ·
    21 hours ago

    Love the idea of the challenge, my issue would be lack of a validator tool to confirm I’d completed the challenge - any suggestions?

    • Semperverus@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 hours ago

      After completing the challenge and making sure your system is usable and can survive a reboot:

      If you’ve kept the old package manager, search for installed packages and make sure that the package manager itself is the only thing left. Then delete it.

    • Madagaskar_sky@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      12 hours ago

      You use the new franken system to do an update to the new version of that distro’s flavour without bricking the system.

      • Semperverus@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 day ago

        The beauty of this exercise is you can make it as easy or challenging as you want just by changing the targets, and finding different combinations can keep things interesting.

  • Go-On-A-Steam-Train@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    I “broke” linux mint just by trying to pop KDE on, had to timeshift because it messed up my keyboard layout and a whole bunch of other things with my display.

    I don’t know how people do these crazy changes without pain, and have a feeling the answer is simply “there’s pain” 😂

    • BJ_and_the_bear@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      ·
      21 hours ago

      Reminds me of trying NsCDE… it changed a ton of settings and no other desktop looked right after that. I ended just blowing away my home folder and restoring my files