this post was submitted on 01 Aug 2023
163 points (95.0% liked)

Linux

48234 readers
619 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

The majority of Linux distributions out there seem to be over-engineering their method of distribution. They are not giving us a new distribution of Linux. They are giving us an existing distribution of Linux, but with a different distribution of non-system software (like a different desktop environment or configuration of it)

In many cases, turning an installation of the base distribution used to the one they're shipping is a matter of installing certain packages and setting some configurations. Why should the user be required to reinstall their whole OS for this?

It would be way more practical if those distributions are available as packages, preferably managed by the package manager itself. This is much easier for both the user and the developer.

Some developers may find it less satisfying to do this, and I don't mean to force my opinion on anyone, but only suggesting that there's an easier way to do this. Distributions should be changing things that aren't easily doable without a system reinstall.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 1 year ago (23 children)

Suppose kubuntu, ubuntu, lubuntu, xubuntu were packages to be installed on top of debian.

How would you do that? Debian would not create and maintain a "core debian" variant just to be installed then receive the extra packages. Would the *ubuntu packages replace, instead of add on top of default debian packages?

Then where would the updates come from? Both debian and *ubuntu repositories?

What about dependencies? Would debian have to coordinate with all *ubuntu maintainers (and they too, between them) for compatibility tests every time debian needed to update one of its packages? Or they'd just update and *ubuntu would have to scramble to release fixes for what had been broken?

Not to mention convenience; would you have to download debian, download *ubuntu, install debian, then your *ubuntu?

Why not then package the "core debian", with the tested component versions that work with the *ubuntu packages you're downloading? Hey, and what about script the installation to install both "core debian" parts and then *ubuntu automatically? That's an innovative idea indeed. No, wait, isn't it sort of what they already do today?

It's not like there's a Linux headquarters with a centralized organization that releases all multiple distros just to feed the hobby of distro hoppers. Distros are maintained and packaged by different people, and it's already a lot of trouble to keep each part in sync.

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (4 children)

Debian would not create and maintain a "core debian" variant just to be installed then receive the extra packages

Debian server minimal, is kind of a "core Debian". There are netinst versions that can be even smaller. The Debian base image for Docker is even smaller than all that.

There is also an Ubuntu minimal install that you could call "core Ubuntu".

But more importantly, and I can't stress this enough: YOU CAN SWITCH DISTROS WITHOUT REINSTALLING. Might need to do some cleanup afterwards, but it's perfectly doable, more so between Debian based ones.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

YOU CAN SWITCH DISTROS WITHOUT REINSTALLING. Might need to do some cleanup afterwards, but it’s perfectly doable, more so between Debian based ones.

How do you do that? First time hearing this

[–] [email protected] 4 points 1 year ago

Replace Debian apt sources with Ubuntu ones, do system upgrade and install the Ubuntu-Desktop package, now you have Ubuntu.

It's been a while since I have done this, but it's totally possible.

We did this transition from Ubuntu to Debian at Work with thousands of workstations.

It requires a bit of time and testing but it's possible.

[–] [email protected] 1 points 1 year ago

What @[email protected] said. Switching .deb based distros is little more than changing sources, maybe some pinning, doing an upgrade, and optionally a cleanup pass to remove any stranglers.

My main Linux box is a Debian-Ubuntu-Debian upgrade, that hasn't seen a proper reinstall for like 15 years (switched all the hardware several times, still no clean reinstall).

Switching between non-deb distros is also possible, with a chroot. Like, Gentoo to Fedora. As long as the kernel is compatible with the glibc, it's basically like running containers, just on slightly hard mode.

[–] [email protected] 2 points 1 year ago (1 children)

Uninstalling the entire kubuntu package, while reverting to “core Debian” and then installing the Ubuntu package would be more complicated and time-consuming than installing a new OS.

Just partition off your /home and a reinstall won’t be that big a deal.

[–] [email protected] 1 points 1 year ago

I want kubuntu?

Step 1: install Ubuntu (the farthest ancestor of kubuntu that does more than change non system packages) Step 2: install kubuntu package: sudo apt install kubuntu

Oh well, I decided I want lubuntu instead

Step 1: uninstall kubuntu: sudo apt remove kubuntu Step 2: install lububtu: sudo apt install lubuntu

That is my proposal. It is WAY simpler than reinstalling.

[–] [email protected] 1 points 1 year ago (1 children)

A minimal install like debian base already has a things that may differ from distro to distro. Or are you equating "distro" with window manager and GUI customizations? Even the kernel binaries may differ from distro to distro.

[–] [email protected] 1 points 1 year ago

I know what I said. Linux upholds the "don't break userspace" contract pretty well: most kernels, particularly those from generalistic distros built with modules, are compatible with whatever userspace binaries you throw at them. Major version changes in glibc (or equivalent) is where incompatibilities start, but those happen quite rarely, and you can often still force multiple glibc versions to run side by side.

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago

Not really, I'm not new to containers.

This might blow yours though: I once booted up from a Tomsrtbt disk, installed Debian, added some RedHat packages, and topped it up with some pinned downgrades from Ubuntu.

On bare metal, no containers, no rebooting.

load more comments (18 replies)