Ubuntu – How does Ubuntu flavor iso differ from a desktop package

aptiso

TL;DR: how does an Ubuntu flavor iso installation ( for example Lubuntu ) differ from installing a desktop package via apt-get ? (for instance sudo apt-get install lubuntu-desktop)

Context for the question:

Some time ago I answered a question on AskUbuntu , where I tested in virtual machine removing unity-desktop and installing ubuntu-gnome-desktop. That makes the boot logo ( plymouth ) change, desktop changes, different packages get installed (gnome-network-manager instead of network-manager , if I am not mistaken). It appeared that in effect I've switched to different Ubuntu flavor, even though I started out with the standard Ubuntu system. Hence the question: what differentiates the pre-made Ubuntu flavor iso from installing a package ? Is it all the same base underneath the hood or does installation from iso have specific configurations ? If it's possible to install a flavor via package manager, why then separate flavor iso's exist ? (obvious answer is user convenience, but I think there has to exist other reasons. Canonical is a business , and it makes not a lot of sense for a business to provide additional flavor iso , if a sysadmin or end-user can get the same thing via package manager by themselves).

Best Answer

Installations from ISO image and metapackage are no different, when metapackages are installed from server ISO and minimal CD images. Users who use an official ISO image and purge packages of existing flavour, then install packages of another flavour may see no difference as well.

Therefore, the metapackages could provide same installation as the ISO images. The following sources seem to support the similarity.

  • Lubuntu community has suggested its metapackage in this page on Lubuntu Wiki.

    [...] use the server ISO. When prompted as to what to install unmark everything (space bar) except basic server and press tab to get to OK. Once installed, login and then do:

    sudo apt install lubuntu-desktop
    

    to add in the lubuntu system [...]

  • Ubuntu community has mentioned its metapackage in this page on generic Wiki, albeit bit outdated to this answered date (since Ubuntu now installs Unity instead of GNOME).

    [...] For example, the ubuntu-desktop metapackage installs the full GNOME desktop environment, with all the other packages that are in a default Ubuntu install. The existence of meta-packages makes it very easy to install other Ubuntu derivatives on your desktop; [...]

  • This other page on generic Wiki has mentioned similarly.

    [...] For example, an Ubuntu user can install the Kubuntu environment (KDE and all its associated programs) by selecting "kubuntu-desktop."

  • The last mentioned page also has listed metapackages by category, and the relevant ones are the first two: "Desktop Metapackages" and "Ubuntu System Metapackages". This simply means "KDE" does not equal to "Kubuntu", "Xfce" does not equal to "Xubuntu" and so forth.

Revised answers

what differentiates the pre-made Ubuntu flavor iso from installing a package ?

No difference for the installation itself. What differentiates between the two is the user experience of installing the product. This is a big deal for end users who expect the product to be available in appropriately packaged form, rather than installing the relevant metapackage via Terminal.

Is it all the same base underneath the hood or does installation from iso have specific configurations ?

Yes, both installations have same settings. This is achieved by installing the "default settings" package for respective flavours, except Ubuntu one is named as ubuntu-settings. Usually, the "default settings" package is already a dependency of respective metapackages.

However, ISO image itself is different because it must contain the installer and additional packages to be bootable and installable. The resulting installation is the same because these packages will be removed later; The installer itself will not be available on local machine once installed.

If it's possible to install a flavor via package manager, why then separate flavor iso's exist ?

A product is most meaningful when tangible and works as advertised. ISO images are more tangible than the metapackages. ISO images will work as advertised upon made as bootable discs. The metapackage will require some knowledge and effort to make it work and not quite a product.

Revised evaluation

It is important to note that metapackages in this answer mainly refers to metapackages for Ubuntu and its flavours. These shall not be mistaken for metapackages of particular desktop environment such as GNOME, MATE, Cinnamon and RazorQt. While Ubuntu and its flavours can have multiple metapackages, user will just have to look for *-desktop metapackages for relevant ones.

Finally, returning to the top question:

TL;DR: how does an Ubuntu flavor iso installation ( for example Lubuntu ) differ from installing a desktop package via apt-get ? (for instance sudo apt-get install lubuntu-desktop)

I have named three differences: User experience, more tangible, works as advertised (or as intended). For end users, less knowledge and less effort are required for installing from an ISO image when compared to installing the metapackage.

User convenience is another thing, but not necessarily applicable to all ISO images. For example, a minimal CD is convenient for small size to download but has more steps for installation. The minimal CD is useful to prepare custom installations, thus offers flexibility rather than convenience.

When users gain more knowledge and more experience, they are less likely to notice the differences. Both experienced and power users can now use Ubuntu and its flavours easier, but the challenges faced by beginning users have not changed.

Like any beginning users, I was once an ignorant user who couldn't even make a bootable disc from ISO image. I'd have not noticed these differences until recently, I remembered that I was once a beginning user. Above all, I'd always prefer the official ISO image for clean installation.

Disclaimer

This answer is the revised approach based on my experience as beginning user, which is more relevant for end users. The following applies.

  1. I did not actually compare installation from ISO image and installation from metapackage, side by side. There are supporting facts that could tell these are technically the same.

  2. I could not find relevant views of Canonical or leading members of community; This answer only contains my own views, findings and facts from the Web.

TL;DR Installation from ISO image is technically the same as installation from metapackage, provided the base system has no other flavour and the correct metapackage is installed. ISO image is more tangible, will work as advertised and close to the actual product.


Related posts on Ask Ubuntu

Related Question