Install Packages "Flatpak" in Deepin

We could call it the "Cousin" of the "Snap" packages powered by Canonical(But with an advantage; they do not repeat dependencies thus minimizing their weight). It is an idea that is not new but the Chief Engineer of RedHat along with the rest of the community and organizations has voluntarily developed it quite well (Consult your code on Github by clicking here), a large part of the applications of Deepin they can be installed in this format, just open the store and write "flatpak" to see the team's bet Deepin Wuhan Technologyby this package technology "Self-contained". There is currently no "GUI" or graphical interface for Flatpak packages in deepin except for native applications, so everything is done by writing and pasting commands in the terminal.

Functioning

Unlike "normal" applications that make use of system dependencies, flatpak packages contain all the dependencies they need to run the application (This technology is known asProcess Isolationorisolated environment-of Englishsandbox-), the isolation will be of the dependencies, as well as the application code not having contact with the system, so if we update our system, on the one hand it will relieve the load of the update since it would be focused on the system and not In the applications, in addition there would be no conflict between the dependencies of the system and the application and not only that, but being isolated, the infection of the system by malicious agents would be prevented. We can also take advantage of this way of installing applications, so it is necessary to know the work that is carried out in Flathub.

Here is a list of «flatpak» applications that can be installed (In my case the one that matters most to me is 0 AD whose version in the «deepin» repositories is 0.0.21 when there is already 0.0.22 but I have made it very difficult to install in the distribution because the latest version generates dependency conflicts with the system, which does not happen when installing it using this method)

To install any of the applications that Flathub offers us, first of all we must place the following command lines in the terminal:

update && sudo apt sudo apt install Flatpak

Then:

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

Then installing any of the applications from the terminal is very easy, you just have to consult the commands, for this on the Flathub site, press where it says "Command Line"

You will get a list of applications with their respective commands, it only remains to paste them in the terminal, in my case as an example, I have chosen Transmission.

Once the download is finished (which would take longer than an installation through «APT» because it would download all the necessary dependencies), it will be installed automatically and we can run the application from the icon that will be created in the Launcher.

View apps, update and uninstall

The principle is very similar to that of «TOdvancedPackageTool ". To see the flatpak applications that we have installed on our system, we must write the following command line:

flatpak list

You can see that their names are a bit long, because those names as they appear there we will use them to carry out an uninstallation (Of course you can also do it from the launcher by right clicking the icon to open the menu and selecting "Uninstall"):

To update, the command line is as follows, this will update all the applications you have installed easily and simply, while you can take care of doing other tasks:

flatpak update

In my case, it found updates for Discord.

There are other repositories where you can get more applications, examples KDE:

flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo

Some are not official, but are created by volunteers, Click here to view.
Did you find a repository? Let me know in the comments, thanks for reading 🙂

Create your first .Flatpak  Create simple .Flatpak applications 

Now you will have the possibility to install the gnome-software-plugin-flatpak package from the repositories, I personally installed it from Synaptic, with that installed you will be able to click on any flatpak file that you download «.flatpakref» and you will be able to install it graphically.

5 1 vote
Rate the Article
 
Subscribe
Report of
19 Reacciones
More popular
Newer Older
Opinion from the article
See all comments
Car
Car (@car)
3 años atrás

I loved; very good article.

Akiba Illusion
Akiba Illusion (@akibaillusion)
3 años atrás

Thank you my JHalo

Jose Luis
Jose Luis (@jose-luis)
2 años atrás

I also installed the gnome-software-plugin-flatpak package from synaptic, but when I wanted to install the apps I got the message «This has not worked. The file is not supported »How do I use the graphical interface?

Эли
Эли (@eli)
Admin
2 años atrás
Answered by: Jose Luis

I also installed the gnome-software-plugin-flatpak package from synaptic, but when I wanted to install the apps I got the message «This has not worked. The file is not supported »How do I use the graphical interface?

Hello Jose Luis welcome to the forum, as the article explains, there is currently no way to install flatpak applications through the graphical interface, but you cannot forget to write the command:

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

in the terminal before trying to install any app. Did you do that first?

Jose Luis
Jose Luis (@jose-luis)
Respondiendo a  Эли
2 años atrás

Thanks for replying, I put the line you sent me in the terminal and I couldn't run the GUI install anyway. But when I installed Nautilus I realized that from this file manager if you can use the installation GUI, now I have to find a way to set Nautilus as the default.

Эли
Эли (@eli)
Admin
2 años atrás
Answered by: Jose Luis

now I have to figure out how to set Nautilus as default.

A pleasure to help you, good news for you. yannsel found a way to do exactly that You Here

Lewin Viola
Lewin Viola (@lewinviola)
2 años atrás

all clear

Sebastian Martin Suarez
Sebastian Martin Suarez (@sebastianmartinsuarez)
1 año atrás

Hello, when I do not put the command flatpak remote-add –if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
it tells me "bash: flatpak: command not found"
any idea why this?
I have deepin 15.10

Sebastian Martin Suarez
Sebastian Martin Suarez (@sebastianmartinsuarez)
1 año atrás

Hello, try Deepin 15.10 and throw me:
bash: Flatpak: the order was not found
any ideas?

Isaías Gätjens M
Isaías Gätjens M (@igatjens)
Admin
Respondiendo a  Sebastian Martin Suarez
1 año atrás

Hello, it seems to me that you still need to install flatpak, before Deepin 15.10 flatpak came pre-installed, but now it is no longer pre-installed, the article was written before Deepin 15.10.

You can install flatpak with the following command:

update && sudo apt sudo apt install Flatpak

After installed you can install flatpak programs.

Greetings.

Эли
Эли (@eli)
Admin
Respondiendo a  Isaías Gätjens M
1 año atrás

Definitely, forget that deepin no longer has flatpak installed by default as before, so try:

update && sudo apt sudo apt install Flatpak

Y

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

Then install the apps you want as it says Isaías Gätjens M

Sebastian Martin Suarez
Sebastian Martin Suarez (@sebastianmartinsuarez)
Respondiendo a  Эли
1 año atrás

Thank you. And this that Flatpak does not have installed implies that the applications will not all migrate to Flatpak?

Эли
Эли (@eli)
Admin
Respondiendo a  Sebastian Martin Suarez
1 año atrás

I like that I solve the problem for you, we will update it with the correct commands. Regarding the migration of flatpak, I do not know the answer as it has not given any official statement on the matter.

Sebastian Martin Suarez
Sebastian Martin Suarez (@sebastianmartinsuarez)
Respondiendo a  Isaías Gätjens M
1 año atrás

Thank you

Sebastian Martin Suarez
Sebastian Martin Suarez (@sebastianmartinsuarez)
Respondiendo a  Isaías Gätjens M
1 año atrás

I worked installing Flatpak, thanks!

Эли
Эли (@eli)
Admin
1 año atrás

Hello Sebastian Martin Suarez It could be due to a small change that I notice in the command when adding support for flatpak, instead of how it appears in the article it deals with this:

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

Then try adding the flatpak application you want.

Maybe we have to update this article a bit since it is a year old. Let me know if it worked for you.

Sebastian Martin Suarez
Sebastian Martin Suarez (@sebastianmartinsuarez)
Respondiendo a  Эли
1 año atrás

It worked by installing Flatpak, thanks!

HENRY GARCIA M.
HENRY GARCIA M. (@henrygarciam)
1 año atrás

help, I just installed deepin 115.10, and they don't give me the commands to install the flatpack;

[email protected]:~$ sudo apt install flatpak
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
flatpak is already in its latest version (0.8.9-0 + deb9u1).
0 updated, 0 new will be installed, 0 to remove, and 1 not updated.
[email protected]:~$ sudo apt install gnome-software-plugin-flatpak
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
gnome-software-plugin-flatpak is already in its latest version (3.22.5-1).
0 updated, 0 new will be installed, 0 to remove, and 1 not updated.
[email protected]:~$ flatpak remote-add –if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
[email protected]:~$ flatpak remote-add –if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
[email protected]:~$ flatpak list
[email protected]:~$

HENRY GARCIA M.
HENRY GARCIA M. (@henrygarciam)
Respondiendo a  HENRY GARCIA M.
1 año atrás

[email protected]:~$ sudo add-apt-repository ppa:alexlarsson/flatpak
Traceback (most recent call last):
File «/usr/bin/add-apt-repository», line 95, in
sp = SoftwareProperties(options=options)
File «/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py», line 109, in __init__
self.reload_sourceslist()
File «/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py», line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File «/usr/lib/python3/dist-packages/aptsources/distro.py», line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin / stable
[email protected]:~$

19
0
We would like to know what you think, join the discussion.x
()
x