Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and enable Flatpak support on Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install and enable Flatpak support on Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Currently, we are all using the official package manager of the Linux distribution to install the required packages.

In Linux, it does a good job without any problems. (it did what it was supposed to do without a discount)

But it also has some limitations in some ways, so let's consider other alternative solutions to solve it.

Yes, by default, we cannot get * versions of packages from the official package manager of the distribution because they were built when the current OS version was built. They will only provide security updates until the next major release.

So, is there any solution to this situation? Yes, we have a variety of solutions, and most of us are already using some of them.

What are there and what are the benefits of them?

For Ubuntu-based systems: PPA

For RHEL-based systems: EPEL warehouse, ELRepo warehouse, nux-dextop warehouse, IUS community warehouse, RPMfusion warehouse and Remi warehouse

Using the above warehouse, we will get the * * software package. These packages are usually well maintained and recommended by most communities. But these are just suggestions and may not always be safe.

In recent years, a general package packaging format has emerged, and it has been widely used.

Flatpak: it is a package format independent of the distribution, and the main contributor is the Fedora project team. Most major Linux distributions use the Flatpak framework.

Snaps:Snappy is a general package encapsulation format originally designed and built by Canonical for Ubuntu mobile phones and their operating systems. Later, more distributions accepted it.

AppImage:AppImage is a portable package format that can be run without installation and without root permissions.

We have previously introduced the Snap package manager and the package encapsulation format. Today we will discuss the Flatpak package encapsulation format.

What is Flatpak?

Flatpak (formerly known as X Desktop Group or xdg-app) is a software utility. It provides a general package encapsulation format that can be used in any Linux distribution.

It provides a sandboxed (isolated) environment for running applications without affecting other applications and distribution core packages. We can also install and run different versions of the software package.

One of the disadvantages of Flatpak is that it does not support server operating systems like Snap and AppImage, and only works in a small number of desktop environments.

For example, if you want to run two versions of php on your system, you can easily install and run as you wish.

This is where the general package encapsulation format is now very famous.

How do I install Flatpak in Linux?

The Flatpak package is available in most official repositories of Linux distributions. Therefore, you can use them for installation.

For Fedora systems, use the DNF command to install flatpak.

$sudo dnf install flatpak

For Debian/Ubuntu systems, use the APT-GET command or the APT command to install flatpak.

$sudo apt install flatpak

For older versions of Ubuntu:

$sudo add-apt-repository ppa:alexlarsson/flatpak$ sudo apt update$ sudo apt install flatpak

For Arch Linux-based systems, use the Pacman command to install flatpak.

$sudo pacman-S flatpak

For RHEL/CentOS systems, use the YUM command to install flatpak.

$sudo yum install flatpak

For openSUSE Leap systems, use the Zypper command to install flatpak.

How does $sudo zypper install flatpak enable Flathub support on Linux?

The Flathub website is an app store where you can find flatpak packages. It is a central repository and all flatpak applications are available to users.

Run the following command to enable Flathub support on Linux:

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

Install the Software Flatpak plug-in for the GNOME desktop environment.

$sudo apt install gnome-software-plugin-flatpak

In addition, if you are using a GNOME desktop environment, you can enable the GNOME repository. It contains all the core GNOME applications.

How does $wget https://sdk.gnome.org/keys/gnome-sdk.gpg$ sudo flatpak remote-add-- gpg-import=gnome-sdk.gpg-- if-not-exists gnome-apps https://sdk.gnome.org/repo-apps/ list the configured flakpak repositories?

To view a list of configured flatpak repositories on the system, run the following command:

How does $flatpak remotesName Optionsflathub systemgnome-apps system list the packages available in the configured repository?

If you want to view a list of available packages in the configured repository, which displays all packages, such as applications and runtime environments, run the following command:

$flatpak remote-ls | head-10 org.freedesktop.GlxInfo gnome-appsorg.gnome.Books gnome-appsorg.gnome.Builder gnome-appsorg.gnome.Calculator gnome-appsorg.gnome.Calendar gnome-appsorg.gnome.Characters gnome-appsorg.gnome.Devhelp gnome-appsorg.gnome.Dictionary gnome-appsorg.gnome.Documents gnome-appsorg.gnome.Epiphany gnome-apps

List only applications:

$flatpak remote-ls-app

List specific warehouse applications:

How does $flatpak remote-ls gnome-apps install the package from flatpak?

Run the following command to install the package from the flatpak repository:

$sudo flatpak install flathub com.github.muriloventuroso.easyssh Required runtime for com.github.muriloventuroso.easyssh/x86_64/stable (runtime/org.gnome.Platform/x86_64/3.30) found in remote flathubDo you want to install it? [y/n]: yInstalling in system:org.gnome.Platform/x86_64/3.30 flathub 4e93789f42acorg.gnome.Platform.Locale/x86_64/3.30 flathub 6abf9c0e2b72org.freedesktop.Platform.html5-codecs/x86_64/18.08 flathub d6abde36c0becom.github.muriloventuroso.easyssh/x86_64/stable flathub 337db43043d2 permissions: ipc, network, wayland, x11, dri file access: home, xdg-run/dconf ~ / .config/dconf:ro dbus access: ca.desrt.dconfcom.github.muriloventuroso.easyssh.Locale/x86_64/stable flathub af837356b222Is this ok [yzone]: yInstalling: org.gnome.Platform/x86_64/3.30 from flathub [#] 1 metadata, 14908 content objects fetched 228018 KiB transferred in 364 secondsNow at 4e93789f42ac.Installing: org.gnome.Platform.Locale/x86_64/3.30 from flathub [#] 4 metadata, 1 content objects fetched; 16 KiB transferred in 2 secondsNow at 6abf9c0e2b72.Installing: org.freedesktop.Platform.html5-codecs/x86_64/18.08 from flathub [#] 26 metadata, 131 content objects fetched 2737 KiB transferred in 8 secondsNow at d6abde36c0be.Installing: com.github.muriloventuroso.easyssh/x86_64/stable from flathub [#] 191 metadata, 3633 content objects fetched; 24857 KiB transferred in 117 secondsNow at 337db43043d2.Installing: com.github.muriloventuroso.easyssh.Locale/x86_64/stable from flathub [#] 3 metadata, 1 content objects fetched; 14 KiB transferred in 2 secondsNow at af837356b222.

All installed applications will be placed in the following location:

How does $ls / var/lib/flatpak/app/com.github.muriloventuroso.easyssh run installed applications?

Run the following command to start the required application and be sure to replace it with your application name:

How does $flatpak run com.github.muriloventuroso.easyssh view installed applications?

Run the following command to view the installed applications:

How does $flatpak listRef Optionscom.github.muriloventuroso.easyssh/x86_64/stable system,currentorg.freedesktop.Platform.html5-codecs/x86_64/18.08 system,runtimeorg.gnome.Platform/x86_64/3.30 system,runtime view details about installed applications?

Run the following command to view details about installed applications:

$flatpak info com.github.muriloventuroso.easyssh Ref: app/com.github.muriloventuroso.easyssh/x86_64/stableID: com.github.muriloventuroso.easysshArch: x86_64Branch: stableOrigin: flathubCollection ID: org.flathub.StableDate: 2019-01-08 13:36:32 + 0000Subject: Update com.github.muriloventuroso.easyssh.json (cd35819c) Commit: 337db43043d282c74d14a9caecdc780464b5e526b4626215d534d38b0935049fParent: 6e49096146f675db6ecc0ce7c5347b4b4f049b21d83a6cc4d01ff3f27c707cb6Location: / var/lib/flatpak/app/com.github.muriloventuroso.easyssh/x86_64/stable/337db43043d282c74d14a9caecdc780464b5e526b4626215d534d38b0935049fInstalled size: 100.0 MBRuntime: org.gnome.Platform/ X86_64/3.30Sdk: how does org.gnome.Sdk/x86_64/3.30 update installed applications?

Run the following command to update the installed application to the * version:

$flatpak update

For specific applications, use the following format:

How does $flatpak update com.github.muriloventuroso.easyssh remove installed applications?

Run the following command to remove the installed application:

$sudo flatpak uninstall com.github.muriloventuroso.easyssh

Go to the man page for more details and options:

Flatpak-help Thank you for reading this article carefully. I hope the article "how to install and enable Flatpak support on Linux" shared by the editor will be helpful to you. At the same time, I hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report