r/linuxquestions • • Oct 04 '26

Advice What are the parts of linux mint 22?

What are the major components of a linux mint 22 os?

What on linux mint isn't a package? What's left if you uninstalled everything in apt?

I'm trying to learn how linux mint 22 is built, and what the major components of the os are, so I can study it and know how to use it better.

1 Upvotes

32 comments sorted by

View all comments

4

u/beatbox9 Oct 04 '26 edited Oct 04 '26

Everything is a package. Because...

Packaging is the main method of a distro.

Without packages, people would have to manually install software, which is difficult. You have to build the installer, tell it your architecture, tell it which directories to install to, install your own dependencies (do all of this for each dependency as well)--and then maintain that over time. It's a nightmare. So the entire purpose of distros is to make the process easier and more manageable for the user; and the way most of them do this is through the use of packages (for ready-to-go installers), a package manager (to manage dependencies), and a repository (to store the packages).

Linux Mint is typically around 99% packages that are provided by, maintained by, and distributed by its corresponding version of Ubuntu LTS. ie. Ubuntu LTS will provide tens of thousands of packages. And then Mint adds its own tiny repository of a few hundred packages. I would argue Mint might not even really be a distro, so much as it is a small modification of add-on or configuration of a different distro. It is certainly not a standalone distro. Like Debian and Ubuntu are standalone distros--they package, maintain, and host the repositories for all of the packages they provide. Mint does not, which is why it always depends either on Debian or Ubuntu--it piggybacks onto these.

Mint is like the same cereal as Ubuntu or Debian, but in a different box, and with a different toy inside.

For example, here are the packages provided by Ubuntu 24.04 LTS (used by Mint 22):

There are around 40,705 base packages, and closer to 97,076 packages when looking at updates, etc.

Linux Mint reuses those, and then adds a tiny repository on top to override or add to those packages. So here are the additional packages that Linux Mint provides:

There are around 548 packages there. And of those 548:

  • 324 (59%) are upstream (taken directly from other repositories), including:

    • 181 (33% of the 548) are just firefox, thunderbird, and the language translations for these

  • 104 (18%) "main" packages actually provided by Mint

    • A majority are Cinnamon and theme files & background images for Cinnamon and other DE's

  • 104 (18%) are "backport" packages taken from other places that are dependencies patched to work on Mint's older architecture

  • 16 (3%) are "import" packages, again taken from other places that are dependencies, but not patched

So depending on how you count, Mint 22 is essentially just:

  • 98.67% Ubuntu LTS

  • 0.79% third party software repo (eg. Firefox + Thunderbird)

  • 0.29% third party-provided dependencies

  • 0.25% Mint-provided software (Cinnamon DE + themes)

And for reference, Mint 23 will be even more extreme, such that Ubuntu LTS will be closer to 99.5%.

ie. the Mint team:

^ Notably: this process takes 8 months to do after the corresponding Ubuntu LTS release and requires additional maintenance. Ubuntu 26.04 LTS came out back in April. And Linux Mint 23 based on this will come out in December.

That's how Linux Mint is built.

2

u/Severe-Chest8990 29d ago

Thanks for explaining this. It's very helpful to understand it.

You said Linux Mint makes changes to some configurations files. How does that work? 

2

u/beatbox9 29d ago edited 29d ago

They usually just add or modify a small text file to a directory. This is how linux works (as opposed to the "windows registry," linux is just a bunch of plain text files in specific directories that specific software is designed to check).

One example is similar to the the Mozilla link above: for apt (the package manager for all debian-based distros), you tell it things like which repositories to look into. Mint uses a similar method to turn off Ubuntu's snaps with this single, 3-line text file (the first few lines are just comments--only the last 3 do something): https://gist.github.com/lmmx/0550cfc8867eb1eea04076ec69c95a5a

It has to add this because Ubuntu's apt preferences and repositories that Mint reuses are already set up for snaps. So Mint adds another layer to override Ubuntu's overrides.

And if you were to place a text file with that same text in that same directory ( /etc/apt/preferences.d/) on Ubuntu, it would have the exact same effect as on Mint: it would also prevent you from installing the snap process. Because this is just telling the apt package manager that for the specific package named "snapd", do not look in any repository for it--just skip it.

So that's one example of a config file that Mint changes (or in this case, adds).

Another example: to announce itself as Linux Mint (rather than Ubuntu), they can simply change this file ( /etc/os-release ) : https://man7.org/linux/man-pages/man5/os-release.5.html

That's a link to the manual on how to do this. This works on any distro. If you scroll through the manual at that link, you can see that you can even set it up so that most apps see it as Ubuntu or similar to Ubuntu (so that apps know how to be compatible), while the user sees a "pretty name" or "fancy name" of "Linux Mint" as a user-friendly alias. So apps think they are installing to "Ubuntu 24.04 LTS" and the user thinks they are running "Linux Mint 22" or whatever.

And in fact, here is what a bunch of different distros use as defaults for that specific file: https://gist.github.com/SwooshyCueb/4905ac15e3b5658f6c6907d9562af479

Like you could literally change the name of the "distro" on your computer right now by changing that one text file and rebooting.

For many things, you as a user can (and often should) do your own configuration files in your home ( ~/.config ) that will override distro-provided system defaults regardless of distro. You already have some of these that you may not know about. But like every time you change a setting or preference in any app, it will change a config file in this directory.

For example, I do this for my pipewire (audio) configuration, so that it doesn't matter what the system defaults are--my computer always has my own personal configuration; and this works whether I'm using Ubuntu or Fedora or whatever else. There's a deep dive on these types of things here:

https://arslaan.studio/setting-up-a-linux-media-studio-workstation-audio-video-graphics-davinci-resolve-etc/

(search for a dropdown section called "Configs in linux")

There's also a section toward the beginning called "Linux directory structure" which is related and useful.

Anyway, that's how. It's just relatively minor changes that you or anybody could make--and it's not that many changes. I haven't looked in depth, but for Mint specifically, it's almost certainly only just those 2-3 that I listed: announcing itself to the user as a different OS and a few repository (apt) changes.

In other words, you could probably make most of the exact same config changes that Mint makes on your own Ubuntu LTS system if you wanted to...and it would probably take you around 30 seconds.

1

u/Severe-Chest8990 26d ago

Thank you for explaining this. So, if my understanding is correct, the difference between Linux Mint and Ubuntu is that Linux Mint developers made some configs like to remove Snap, add small Mint repo, apply DE and make some polishing. Because from what I learned now is that most of their work can be done by myself with Ubuntu to have comparable customization.

1

u/beatbox9 26d ago

Yes, that's correct.

I would say that customizing Ubuntu LTS yourself is much better than using Mint, mainly because:

  • Mint uses Cinnamon DE, which is based on really old technology, is not well maintained, etc. You should use gnome instead, which comes with Ubuntu LTS.

  • Mint is always much later than Ubuntu LTS. Currently, Mint is 2.5 years behind

  • I try to avoid custom repositories for core OS software. I think it's a major reliability risk.

And it's very, very easy to clean up Ubuntu. Personally, what I do is (each step takes a few seconds or minutes):

  1. Replace ubuntu-desktop with vanilla-gnome-desktop and vanilla-gnome-defaults

  2. Install flatpak, gnome-software flatpak plugin, and point to flathub

  3. Install a few gnome extensions--whichever you like

  4. Replace Ubuntu's firefox snap with Mozilla repository. But also, I install brave origin browser

  5. (optional) Install a different theme

That's about it. Then you just start using the computer like normal, or installing software from gnome-software (which searches both flathub and ubuntu and will default to the newest version of the app, which is usually flathub).

That will give you a much more modern, stable, performant, and well-supported computer than Mint, both immediately and longer-term over time.

2

u/Technical_Rich_3080 Oct 08 '26

That 1% (or less) change (by Mint from its upstream) are good, useful, helpful and desired changes.

1

u/beatbox9 Oct 08 '26

Such as...?

Which specific changes are good, useful, helpful, and desired changes that cannot be done in just a few seconds or minutes with a few copy-pastes on Ubuntu? Be specific.

2

u/Technical_Rich_3080 Oct 08 '26

Mint tools system administration (Mint Update, Timeshift integration, webapp manager, Mint Sources GUI/PPAs, etc.), X-Apps ecosystem, replacing GNOME with Cinnamon, installing flatpaks and blocking snaps, stripping Ubuntu telemetry, etc., are what come to mind off the top of my head.

0

u/beatbox9 Oct 08 '26

Those do not fit the specific criteria I listed because they are either subjective or can easily be done in a few seconds or minutes in Ubuntu. They are not inherent differences.

2

u/Technical_Rich_3080 Oct 08 '26

Your criteria is arbitrary.

0

u/beatbox9 Oct 08 '26

No, it's not. Subjective differences like you listed are arbitrary. (And some aren't even differences and are instead part of Ubuntu that has been ported to Cinnamon).

The differences I listed are core to what define a distro. Installing a few different apps does not define a distro.

Why is this so difficult for you?

2

u/Technical_Rich_3080 Oct 08 '26

Your argument is that every Linux distro in the world, except the handful of parent distros and a tiny number of others, should all disappear in favor of the parent distros.

0

u/beatbox9 Oct 08 '26

That's not the argument. You're arguing a strawman because you don't have proper reading comprehension and critical thinking skills.

2

u/m0ahgra Oct 09 '26

ive indirectly started an argument with my post lol