(_G)Iniziare

Fedora Kinoite è progettato per essere semplice e intuitivo da usare, e in generale non dovrebbe essere necessaria una conoscenza specialistica. Tuttavia, Fedora Kinoite è costruito in modo diverso rispetto ad altri sistemi operativi, quindi ci sono alcune cose che è utile conoscere.

Fedora Kinoite offre opzioni diverse per l’installazione del software rispetto a una versione classica di Fedora KDE Spin (o ad altre distribuzioni Linux basate su pacchetti). Queste includono:

  • App Flatpak: Questo è il metodo principale con cui le applicazioni (con interfaccia grafica) vengono installate su Fedora Kinoite.

  • Toolbox: Utilizzato principalmente per applicazioni da riga di comando, strumenti di sviluppo, debug, ecc., ma supporta anche applicazioni con interfaccia grafica.

  • Layering dei pacchetti: La maggior parte dei pacchetti Fedora può essere installata sul sistema grazie al layering dei pacchetti. Per impostazione predefinita, il sistema funziona in modalità immagine pura, ma il layering dei pacchetti è utile per componenti come libvirt, driver, ecc.

Sebbene Flatpak sia più adatto alle applicazioni con interfaccia grafica, Toolbox alle applicazioni da riga di comando e il layering dei pacchetti ai pacchetti a livello di sistema, spetta comunque a te scegliere il metodo che meglio si adatta alle tue esigenze. Non c’è nulla di sbagliato nell’installare applicazioni CLI con Flatpak, applicazioni GUI con Toolbox o nell’utilizzare esclusivamente il layering dei pacchetti. Tuttavia, in questa documentazione gli esempi seguono le raccomandazioni sopra menzionate.

Per ulteriori informazioni su Flatpak e <\<package-layering,layering dei pacchetti>>, vedi sotto.

Consulta la pagina dedicata xref\:toolbox.adoc\[toolbox] per iniziare a usarlo.

Flatpak

Flatpak è il metodo principale per installare le applicazioni su Fedora Kinoite (per maggiori informazioni, consulta flatpak.org). Flatpak funziona immediatamente su Fedora Kinoite, e Fedora offre una raccolta di applicazioni, seppur ancora piccola ma in crescita, che possono essere installate.

L’altra principale fonte di applicazioni Flatpak è [Flathub(Flathub), che offre un ampio repository di app Flatpak installabili.

Impostare Flathub

Per configurare Flathub su Fedora Kinoite, apri la pagina [Flathub(Flathub) setup page for Fedora e clicca sul pulsante “Flathub repository file” per scaricare la configurazione di Flathub.

sfg flathub fedora
Figure 1. Pagina di configurazione rapida di Fedora

Una finestra popup mostrerà l’opzione per scaricare il file. L’opzione “Apri con” dovrebbe indicare “Discover (predefinito)”. Clicca sul pulsante “OK” per avviare il download.

sfg flathub download
Figure 2. Opzioni di download di Flathub

Al termine del download, si aprirà una nuova finestra che mostra il repository Flathub. Per avviare l’installazione del repository Flathub, clicca sul pulsante “Installa” (1). Nella finestra successiva dovrai autenticarti per procedere con l’installazione.

sfg flathub install
Figure 3. Finestra di installazione di Flathub

Al termine del processo di installazione del repository, la finestra si aggiornerà mostrando un pulsante “Rimuovi” al posto del pulsante “Installa”.

In alternativa, puoi usare il seguente comando dal terminale:

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Installing Flatpak apps from Flathub

Once the Flathub repository has been setup, it can be used to install Flatpak apps. This can be done directly from the Plasma Discover application, or apps can be browsed on the Flathub website.

If you choose to install apps from the Flathub website, clicking "Install" will download a file which will be opened by the Plasma Discover application, which can then be used to install the app. For example, to install LibreOffice, you first search for and open the LibreOffice page, and then press the “Install” button.

After clicking the “Install” button, a download information window will be shown. Verify the correct Flatpak has been downloaded and then click on the “OK” button to begin installing the LibreOffice application.

sfg libreoffice install
Figure 4. LibreOffice Flatpak download

Once the Flatpak is downloaded, the Plasma Discover application will open a new window with an “Install” button. Click this button to begin installation.

Alternatively, each application on flathub.org can be installed through the terminal by running the installation command at the bottom of the page that should look something like this:

$ flatpak install flathub <package-name>

As an example, Firefox can be installed by running the following command which can be found on Firefox’s flathub page:

$ flatpak install flathub org.mozilla.firefox

Flatpak command line

Additional details about the flatpak command line interface can be found in the official Flatpak documentation.

Package layering

Package layering works by modifying your Fedora Kinoite installation. As the name implies, it works by extending the packages from which Fedora Kinoite is composed.

Good examples of packages to be layered would be:

  • fish: An alternative Unix shell

  • sway: A Wayland tiling compositor

  • libvirt: The libvirt daemon

Most (but not all) RPM packages provided by Fedora can be installed on Fedora Kinoite using this method.

Currently, using package layering creates a new "deployment", or bootable filesystem root. It does not affect your current root. This preserves rollback and the transactional model, but means that the system must be rebooted after a package has been layered or updated. You can alternatively use rpm-ostree install --apply-live <pkg> to also temporarily apply the change directly to your currently booted deployment. It’s generally expected that you use package layering sparingly, and use flatpak and dnf install inside a toolbox etc.

Package layering is generally done from the command line. However, the Software application does rely on it for installing a small number of apps that are currently difficult to install as Flatpaks.

Installing packages

Packages can be installed on Fedora Kinoite using:

$ rpm-ostree install <package name>

This will download the package and any required dependencies, and recompose your Fedora Kinoite image with them. rpm-ostree uses standard Fedora package names, which can be searched with rpm-ostree search since Fedora Kinoite 39, or using DNF inside a toolbox for previous versions.

Once a package has been installed in this manner, it will be kept up-to-date as new versions are released and as the base operating system is updated.

By default, rpm-ostree will download both required and recommended dependencies of layered packages. If you want dependency resolver to stick to required dependencies only, then you have to append

Recommends=false

line to the /etc/rpm-ostreed.conf file. There’s no ad-hoc CLI flag to do so because of how rpm-ostree works internally.

Replacing packages

In some scenarios, you may want to test out a new version of podman or kernel or other packages that live on the host. The rpm-ostree override command can be used to replace a package with a different version. You can download the package locally and run:

$ rpm-ostree override replace <path to package>

Or you can override packages without downloading using links from koji or bodhi. For example:

$ rpm-ostree override replace https://kojipkgs.fedoraproject.org//packages/podman/3.1.2/1.fc34/x86_64/podman-3.1.2-1.fc34.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/podman/3.1.2/1.fc34/x86_64/podman-plugins-3.1.2-1.fc34.x86_64.rpm

You may also use override remove to effectively "hide" packages; they will still exist in the underlying base layer, but will not appear in the booted root.

Removing and replacing packages using package layering is not generally recommended. For more information, see the rpm-ostree documentation.

Adding packages from external repositories