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 the package manager Flatpak under Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail how to install the package manager Flatpak under Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Flatpak is a package management utility that allows you to distribute, install, and manage software without worrying about dependencies, runtime, or Linux distribution. Because you can install software without any problems, regardless of the Linux distribution (whether it's a Debian-based or Arch-based distribution), Flatpak is called a general-purpose package.

The method of installing Flatpak on Linux

Most official repositories of Linux distributions provide Flatpak packages, so you can use them for installation.

For Fedora systems, install flatpak using DNF:

$sudo dnf install flatpak

For Debian/Ubuntu systems, install flatpak using APT-GET or APT:

$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, install flatpak using Pacman:

$sudo pacman-S flatpak

For RHEL/CentOS systems, install flatpak using YUM:

$sudo yum install flatpak

For openSUSE Leap systems, install flatpak using Zypper:

$sudo zypper install flatpak

For more information, please refer to the installation Flatpak tutorial on Linux systems.

Https://wiki.gnome.org/Apps/Evolution/Flatpak

Methods to enable Flathub support on Linux

The Flathub website is an application store for Flatpak software packages, in which you can find them. It is very convenient to go to Flathub to install Flatpak applications, with installation methods.

It is a central repository and all flatpak applications are available to users, and run the following command to enable Flathub support on Linux:

"

Flatpak-user remote-add-from flathub https://flathub.org/repo/flathub.flatpakrepoflatpak-user install flathub org.gnome.Platform//3.34flatpak-user install flathub org.gnome.Sdk//3.34

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, which contains all GNOME core applications:

$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/

# flatpak-- ostree-verbose-- system install flathub-y org.gnome.Sdk/x86_64/3.34 lists the configured flatpak repositories

If you want to view a list of configured flatpak repositories on the system, run the following command:

$flatpak remotes

The method of installing and using Flatpak on a Linux system lists 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, applications, and runtimes, run the following command:

$flatpak remote-ls | head-10

List only applications that are not run time:

$flatpak remote-ls-app

List specific repository applications:

$flatpak remote-ls gnome-apps

How to install packages from flatpak

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

$sudo flatpak install flathub com.github.muriloventuroso.easyssh

All installed applications will be placed in the following location:

$ls / var/lib/flatpak/app/

Com.github.muriloventuroso.easyssh

Run the installed application

Run the following command to start the desired application and ensure that it must be replaced with the application name:

$flatpak run com.github.muriloventuroso.easyssh

View installed applications

Run the following command to view the installed applications:

$flatpak list

View details about installed applications

Run the following command to view details about installed applications:

$flatpak info com.github.muriloventuroso.easyssh

Update installed applications

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

$flatpak update

For specific applications, use the following format:

$flatpak update com.github.muriloventuroso.easyssh

Delete installed applications

Run the following command to remove the installed application:

$sudo flatpak uninstall com.github.muriloventuroso.easyssh

You can open the man page for more details and options, run the following command:

$flatpak-help

Attached: Gentoo uses flatpak

1. Create / etc/portage/repos.conf/flatpak-overlay.conf:

[flatpak-overlay]

Priority = 50

Location = / usr/local/portage/flatpak-overlay

Sync-type = git

Sync-uri = https://github.com/fosero/flatpak-overlay.git

Auto-sync = Yes

2. Emerge-sync and then emerge flatpak

3. Install from the network:

Flatpak install-from https://flathub.org/repo/appstream/org.kicad_pcb.KiCad.flatpakref

4. Install from a file:

Find app from the app application site: https://flathub.org/ and download the .flatpakref installation

5. Install from repository

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

Flatpak install flathub com.visualstudio.code

6. Run

Flatpak run com.visualstudio.code

This is the end of this article on "how to install the package manager Flatpak under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

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

Development

Wechat

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

12
Report