Jump to content

Pretty good Linux by @Rongzhou

From Wikibase
Revision as of 08:35, 18 October 2026 by Rongzhou (talk | contribs) (Created page with "== Golden rules to prevent unpredictable/unexpected failures == === Think trice before you <code>sudo</code>. === <code>sudo</code> is fine given * it is your device * you actually know the consequences * you have some way of reminding yourself what you did (if you are making permanent changes) === Be careful with packages === ==== Installation: dist v. 3rd party repo ==== If you are installing a package from the official dist repo, nothing is likely to break, as d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Golden rules to prevent unpredictable/unexpected failures

Think trice before you sudo.

sudo is fine given

  • it is your device
  • you actually know the consequences
  • you have some way of reminding yourself what you did (if you are making permanent changes)

Be careful with packages

Installation: dist v. 3rd party repo

If you are installing a package from the official dist repo, nothing is likely to break, as dist repos prioritise stability and compatibility over novelty.

However, if you are installing a package from elsewhere, be careful. Even if that package is not malicious, it could cause accidental compatibility issues, just like good people can wreak havoc as well.

There are valid reasons to install from a 3rd party repository, such as desire for up-to-date versions or niche packages not in dist repo, so the rule-of-thumb is not to avoid 3rd party repos, but to:

  • install via apt (which installs packages system-wide to /etc/ /usr/bin/ /usr/lib/ ) only packages that you fully trust:
    • the integrity of the source
    • the good intention and technical competence of people behind it
  • install via user-level package managers like brew only packages that you trust:
    • the integrity of the source
    • the good intention of people behind it
  • install via flatpak
    • (a particular version of a) GUI software that you really need but cannot/should not be installed via apt
  • run a portable .AppImage only if:
    • you cannot install the software however elsewise
    • you trust the integrity of the source and the good intention of people behind it.

On Linux, Brew-installed packages do not use system dependencies. Instead, they bundle their own to prevent version conflicts. Linux Brew is mostly intended for small CLI tools, not GUI applications, for now.

Flatpak-installed apps are sandbox-isolated. They have limited access to the host system and is not meant for system tools.