Minimalist Ubuntu System [duplicate]

I use Ubuntu mini.iso to install minimalist system deselecting all software options, then after reboot install xorg, display manager (slim) and LXDE. Is there a difference in the amount of installed packages when the install command has a different order, such as:

sudo apt --no-install-recommends install xorg slim lxde
sudo apt install xorg slim lxde --no-install-recommends
sudo apt install --no-install-recommends xorg slim lxde

If there is a difference, which command variant installs the least amount of packages?


You've provided no release details; and the commands may have different requirements if different releases are involved (in fact I'd expect that, esp. for more modern releases given LXDE hasn't been a Lubuntu package for numerous release; it's now purely Debian packages).

The mini.iso is no longer produced either; as it was a by-product of a no-longer used procedure (it was never fully supported by Ubuntu or Canonical). See "Future of MinimialCD" at https://help.ubuntu.com/community/Installation/MinimalCD

Canonical and the Ubuntu project never officially supported the mini.iso ; it was produced as a by-product of building the debian-installer. As the Ubuntu Server image now uses subiquity, the build process that built mini.iso is no longer used, thus why this installation media is now old.

To answer your question, NO, changing the order in which they appear in the command will not have any impact IF the packages are the same & release details are the same; as you appear to have the same command with just a different order of operands.

Differences in apt may need to be taken into account as no release is provided, so this advice is generic & assumes my current release.


The order of non-option and option arguments do not matter, except for options that conflict with each other (e.g., apt ... --no-install-recommends ... --install-recommends ... and apt ... --install-recommends ... --no-install-recommends will have different behaviour). You can test this out easily for yourself by tacking on a --simulate to each of these commands:

# sudo apt --no-install-recommends install xorg slim lxde --simulate  | grep -w and

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

0 upgraded, 335 newly installed, 0 to remove and 1 not upgraded.

# sudo apt install xorg slim lxde --no-install-recommends --simulate  | grep -w and

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

0 upgraded, 335 newly installed, 0 to remove and 1 not upgraded.

# sudo apt install --no-install-recommends xorg slim lxde --simulate  | grep -w and

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

0 upgraded, 335 newly installed, 0 to remove and 1 not upgraded.