adding Flatpaks to antiX 23

Forum Forums Official Releases antiX-23 “Arditi del Popolo adding Flatpaks to antiX 23

  • This topic has 7 replies, 6 voices, and was last updated Jan 23-5:20 pm by RedSnt.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #116920
    Member
    PPC

      Flatpaks (a “universal” file package) are not supported out of the box under antiX, because they drag in some dependencies (that are against the default antiX policy to keep the system as light as possible).
      Also, installing flatpak apps usually implies downloading several hundreds of Mb just to install small packages (ex: download all KDE libraries to install something as simple as a small text editor).

      NB: If you want to install some application that already is available in the Repository (i.e. under of the Package Installer tabs; under synaptic; or apt, if you use the terminal), stick with those official .deb packages.
      – If that app is not available in the repositories, check if there’s an appimage of it. You can download and use that, without harming your system.
      – You can also try asking here in the forum, for someone to package that app for antiX. Somes apps got added to antiX repository that way!
      – If the app (or the app version you need) is only available in flatpak format… Then suffer on and install it…

      Adding flatpak support to antiX 23:

      antiX menu > Terminal

      sudo apt update && sudo apt install flatpak lxpolkit
      sudo flatpak remote-add --if-not-exists flathub http://flathub.org/repo/flathub.flatpakrepo

      That’s it.

      You can now install flatpaks directly from the flathub repo or download the flatpak file from http://flathub.org/ (it’s a kind of an appstore).

      To install apps from from http://flathub.org/ :
      Once you set up your system to support flatpaks, it’s easy:
      – find the app you want to install, on flathub.org
      – click that app, so you see it’s details. The blue “Install” button has an down arrow. Click that arrow. A small subwindow pops up. Copy the first link (“Manual install”)
      – in antiX’s Terminal, type sudo followed by a space and then paste the link. Press enter to run the command. Enter your password is asked to. Press enter to confirm you want to start the install process, when asked to.
      – Wait (probably a looong time for the download process to finish)

      Note: in antiX 23 sysv Live, according to my tests, the command to install flatpak apps requires sudo
      ex:
      sudo flatpak install /home/demo/Live-usb-storage/com.expidusos.calculator.flatpakref
      This is unusual and I have no idea why this happens (adding the flatpak repository also requires elevated privileges and it should not require that)

      Apps installed via flatpak do not require elevated privileges to run.
      ex:
      flatpak run com.expidusos.calculator

      Like in previous versions of antiX, you can add flatpak apps to the menu:
      sudo ln -f -s /var/lib/flatpak/exports/share/applications/*.desktop /usr/share/applications && sudo desktop-menu --write-out-global

      Now you can run flatpak apps just like any ordinary app (or so I hope).

      Edit:
      Managing permissions required by flatpak apps:
      (If you own an android device and installed any app on it you probably noticed that often a window pops up, asking for the permissions that app requires.)
      Flatpak apps may require some applications to work properly (Ex: accessing you home folder, so they can load or save files, accessing the web, etc.), but often they do not ask for those required permissions. You can do that using the command line, but I would advise that if you use flatpaks, flatseal should be installed (and added to antiX’s menu, for ease of use) (NB: still untested in antiX 23):

      sudo flatpak install flathub com.github.tchx84.Flatseal
      sudo ln -f -s /var/lib/flatpak/exports/share/applications/*.desktop /usr/share/applications && sudo desktop-menu –write-out-global

      You can now use that GUI to manage permissions required by your flatpak apps.

      Edit2:
      Removing installed flatpak apps and/or their runtimes:
      In the terminal, first list all the installed flatpak apps (and runtimes):
      flatpak list

      Copy the name of the flatpak package you want to delete (it always includes 2 periods) then
      sudo flatpak uninstall name.of_the.app

      Updating flatpaks:
      Not being debian packages, flatpaks do not update when you perform an update on your system. To update flatpak apps run, from the terminal:
      sudo flatpak update

      That’s all.

      P.

      • This topic was modified 7 months ago by PPC.
      • This topic was modified 7 months ago by PPC.
      • This topic was modified 7 months ago by PPC.
      #116925
      Member
      sybok

        @PPC: Interesting, thanks for explicitly showing the possibility of using flatpack formats (I prefer to stick with SW in the repositories).

        According to http://forums.debian.net/viewtopic.php?p=779213&sid=0f75d54c8c8618862b495cba5ea11fe1#p779213 (from 2023) ‘sudo’ is required when installing ‘flatpak, and adding a flatpack repository, not when installing applications.
        On the other hand, http://www.tecmint.com/install-flatpak-on-linux/ (from 2020) suggests it to be necessary only when installing ‘flatpak’.
        That’s odd…
        Perhaps it varies across distributions (I believe that *buntu does not support flatpack out of the box).

        #123406
        Member
        sybend

          it did not working :
          $ sudo apt update && sudo apt install flatpak lxpolkitHit:1 http://security.debian.org bookworm-security InRelease
          Hit:2 http://ftp.de.debian.org/debian bookworm InRelease
          Hit:3 http://deb.debian.org/debian bookworm-backports InRelease
          Ign:4 https://mirror.freedif.org/MXLinux/repo/antix/bookworm bookworm InRelease
          Err:5 https://mirror.freedif.org/MXLinux/repo/antix/bookworm bookworm Release
          404 Not Found [IP: 132.147.122.105 443]
          Get:6 http://ftp.us.debian.org/debian bookworm-updates InRelease [52.1 kB]
          Reading package lists… Done
          E: The repository ‘https://mirror.freedif.org/MXLinux/repo/antix/bookworm bookworm Release’ does not have a Release file.
          N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
          N: See apt-secure(8) manpage for repository creation and user configuration details.
          sybend@antix1:~
          $

          #123408
          Member
          abc-nix

            it did not working :
            […]
            Err:5 https://mirror.freedif.org/MXLinux/repo/antix/bookworm bookworm Release
            404 Not Found [IP: 132.147.122.105 443]

            Change the antiX repo using the repo manager app.

            #123412
            Member
            Robin

              Flatpack failed for me when trying to install it on antiX 23, but this was still on the testing version early this year. Even filed a bug report to flatpack at github https://github.com/flatpak/flatpak/issues/5392 , but they couldn’t sort it out, merely stating it should run, independently from the init system used. Would have needed this flatpack thing for installing roger router, since roger-router package from debian https://tracker.debian.org/pkg/roger-router was removed once again from testing, waiting for a single library getting updated ( https://tracker.debian.org/pkg/librm ). Maintainers are procrastinating this for more than a year now. People who need to rely on this router management tool can’t update to bookworm for this reason, I should have waited also, since I urgently need this management tool and rely on having it present. There is mostly no alternative to it. <rant> One debian version it is present, next it is missing, then it is back again, and next year again missing. What the heck do they think how one should work when you can’t rely on it to be present after system upgrade? </rant> So I’m glad to read you have succeeded to run flatpack on antiX 23, and I’ll give it another try as soon as possible (even if I really don’t like this way of installing programs).

              Windows is like a submarine. Open a window and serious problems will start.

              #130272
              Member
              RedSnt

                I can’t install Flatpak due to libavahi-common3 and libelogind0 being respectively antix2 and antix1 versions.
                I read in another thread that it might be due to security reasons: https://www.antixforum.com/forums/topic/flatpak-interface-questions-antix-23/
                Shame. It’s not a huge deal for me, just wanted to install Bottles, but they only offer flatpak related installation possibilities.

                #130273
                Member
                PPC

                  I can’t install Flatpak

                  If I’m not mistaken, I did recently install flatpak support on my antiX 23 desktop PC. It worked. If you don’t mind installing “elogin” dependencies, etc. it should work for you too. I never testing installing Bottles, but once you have flatpak installed and configured, it should install fine.

                  EDIT: I just finished installing Bottles in the antiX 22 PC I’m using right now.

                  P.

                  • This reply was modified 2 months, 2 weeks ago by PPC.
                  • This reply was modified 2 months, 2 weeks ago by PPC.
                  #130304
                  Member
                  RedSnt

                    If I’m not mistaken, I did recently install flatpak support on my antiX 23 desktop PC. It worked. If you don’t mind installing “elogin” dependencies, etc. it should work for you too. I never testing installing Bottles, but once you have flatpak installed and configured, it should install fine.

                    EDIT: I just finished installing Bottles in the antiX 22 PC I’m using right now.

                    P.

                    Through some trial and error I got it installed, but with my system being 32-bit there’s close to 0 packages available 😅
                    But I learned a lot, like how to “apt download” and “dkpg –ignore-depends -i $DEB_NAME”. And also “sudo chown _apt ./” lol
                    Only really needed to manually install libostree-1-1 and libavahi-glib1 before I could manually install flatpak. And everything works – except that 32-bit application support was discontinued 3 years ago.

                    • This reply was modified 2 months, 2 weeks ago by RedSnt.
                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.