Question: I’m running Linux Mint right now. Is it possible to change distro to … for example OpenSuse - without a clean install ?

  • kibiz0r ( kibiz0r@midwest.social ) 
    link
    fedilink
    English
    arrow-up
    33
    ·
    1 year ago

    The real question is all the stuff beyond just having the distro installed. The packages, the services, the configs, the application data.

    If you leave all that stuff the way it was installed via the old package manager, it may have some bad assumptions baked in and may be incompatible with packages you install with the new package manager.

    And if you clear all of it out and reinstall it, have you really gained anything vs. just doing a clean install?

    There’s a reason you have a home dir. Just copy that forward along with whatever other config files you might’ve customized.

    Btw, if the ability to make drastic changes while still maintaining continuity is an important feature for you, maybe check out NixOS.

    • Personally I don’t use a separate /home partition. Software versions can differ significantly between distros and this has plenty of potential to effectively fuck up your system anyhow*.

      I use a separate data partition instead, and hook it into my home with symlinks. Pictures, Documents, Videos etc. - these are usually those that take the most disk space anyhow, by a large margin.

  • Wimster ( Wimster@lemmy.wtf ) OP
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    THANK YOU ALL for your replies. I’ll do a clean install and made a backup of my files (was not difficult bc most stuff I have in the cloud). I’m moving indeed from Mint to OpenSuse Tumbleweed. I don’t know exactely why, but it seems to me an interesting thing to do. Still figuring out what distro fits me best.

    • chaosCruiser ( chaosCruiser@futurology.today ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      1 year ago

      I’ve read some stories of someone transmuting Ubuntu into Debian or something like that. It requires lots of knowledge of both systems, plenty of time, and infinite patience. The two distributions should be somewhat closely related in order to make this gargantuan project even remotely feasible. If you’re jumping from Arch to Gentoo, you might as well just do LFS while you’re at it.

    • Technically, if you had tons of time and a solid understanding of Linux inside and out, you might be able to pull it off, but it’s not worth the hassle at all.

      This is what I thought. Preferably “from the outside” i.e. while the system isn’t running. But all you “saved” in the end is the filesystem the original OS was installed on, and possibly personal data (which probably is the reason OP is even asking).

  • diesch ( diesch@loma.ml ) 
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    @Wimster Yes, but it takes much longer and requires a very good knowledge of your future distro.

    You need to manually unpack packages of your future distro ijnto soem folder to create a chroot environment that is able to run the package manager of your future distro. Chroot into that and install the software for a minimal bootable environment. Move your new distro environment to the root dir of your partition, remove the old stuff and configure your boot manager. Then you can boot into your new minimal distro and install whatever you want.

    Debian has some programs to help you with the first steps, like debootstrap (for .deb based distros) and rinse (for .rpm based distros, like OpenSUse).

  • Rogue ( Rogue@feddit.uk ) 
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    As others have said, not with Linux Mint.

    However if you were running an atomic distro such as Aurora, Bazzite, Project Bluefin, or Fedora Silverblue you can “rebase” from one to another.

    With an atomic distro all the system files are immutable, you can read them but only the OS can change them. As there’s a clear distinction from user files (anything in /var or /home) the OS can simply replace all the system components with a new distro and re-mount your files.

  • That depends on a couple of things:

    If you have a separate partition for /home (your personal data) it is pretty easy since you can reinstall the system, leave /home untouched during installation and just configure it to be used as /home in your new setup.

    This does not work if you either do not have a separate /home partition or you encrypt your system via LUKS.

    It technically still is possible in the aforementioned cases but involves expert knowledge and probably a lot of manual steps which I’d say for you and me it probably is impractical.

    • It’s totally unproblematic to use an existing encrypted partition even without a separate home partition. You just unlock your drive and delete everything except for home. Never encountered a single installer that couldn’t handle it.