Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Open Source
  3. I created a script for installing Linux apps from their official sources

I created a script for installing Linux apps from their official sources

Scheduled Pinned Locked Moved Open Source
opensource
45 Posts 14 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tsugu@slrpnk.netT This user is from outside of this forum
    tsugu@slrpnk.netT This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    I created a script that always installs apps from their official source

    https://github.com/Tsu-gu/appfetch/

    It's a proof of concept of an idea I had a while ago. I dislike having to hunt down apps for my Linux machine when I want them from an official source. Some apps are packages as tarballs, some as .debs, some as install scripts that download a binary, some are flatpaks and snaps.

    I created a yaml file with only verified apps from flathub and snapcraft, and added a few apps outside of them that I could think of.

    The ultimate goal is the user just typing the names of what they want, and the script will just get it. They shouldn't waste time with picking the right source.

    R ulrich@feddit.orgU mrsoup@lemmy.zipM thejevans@lemmy.mlT sxan@midwest.socialS 8 Replies Last reply
    114
    • tsugu@slrpnk.netT [email protected]

      I created a script that always installs apps from their official source

      https://github.com/Tsu-gu/appfetch/

      It's a proof of concept of an idea I had a while ago. I dislike having to hunt down apps for my Linux machine when I want them from an official source. Some apps are packages as tarballs, some as .debs, some as install scripts that download a binary, some are flatpaks and snaps.

      I created a yaml file with only verified apps from flathub and snapcraft, and added a few apps outside of them that I could think of.

      The ultimate goal is the user just typing the names of what they want, and the script will just get it. They shouldn't waste time with picking the right source.

      R This user is from outside of this forum
      R This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      I like the idea ! And looked at the project on github. But ..... snap disgust me so much more than searching the right source, i'm not adapting to it. But still nice thinking!

      tsugu@slrpnk.netT H 2 Replies Last reply
      42
      • R [email protected]

        I like the idea ! And looked at the project on github. But ..... snap disgust me so much more than searching the right source, i'm not adapting to it. But still nice thinking!

        tsugu@slrpnk.netT This user is from outside of this forum
        tsugu@slrpnk.netT This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        Thank you, and fair enough.

        E 1 Reply Last reply
        16
        • tsugu@slrpnk.netT [email protected]

          Thank you, and fair enough.

          E This user is from outside of this forum
          E This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          Maybe add something in the search results to indicate the app's origin? Or even just a way to choose search sources?

          tsugu@slrpnk.netT 1 Reply Last reply
          8
          • tsugu@slrpnk.netT [email protected]

            I created a script that always installs apps from their official source

            https://github.com/Tsu-gu/appfetch/

            It's a proof of concept of an idea I had a while ago. I dislike having to hunt down apps for my Linux machine when I want them from an official source. Some apps are packages as tarballs, some as .debs, some as install scripts that download a binary, some are flatpaks and snaps.

            I created a yaml file with only verified apps from flathub and snapcraft, and added a few apps outside of them that I could think of.

            The ultimate goal is the user just typing the names of what they want, and the script will just get it. They shouldn't waste time with picking the right source.

            ulrich@feddit.orgU This user is from outside of this forum
            ulrich@feddit.orgU This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            Sounds like Obtainium on Android.

            The thing that concerns me is that it downloads an unofficial source.

            tsugu@slrpnk.netT 1 Reply Last reply
            9
            • E [email protected]

              Maybe add something in the search results to indicate the app's origin? Or even just a way to choose search sources?

              tsugu@slrpnk.netT This user is from outside of this forum
              tsugu@slrpnk.netT This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              I understand that people treat snap as if it was a contagious virus but the developers chose the method purposely. A lot of KDE apps are only distributed as snaps for example, k3b comes to mind. VLC as well.

              There are flatpak versions but they aren't official, which defeats the point a bit.

              I do however plan to somehow add the ability to prefer flatpak, since a few of the entries have both a flatpak and snap field.

              ulrich@feddit.orgU C 2 Replies Last reply
              4
              • ulrich@feddit.orgU [email protected]

                Sounds like Obtainium on Android.

                The thing that concerns me is that it downloads an unofficial source.

                tsugu@slrpnk.netT This user is from outside of this forum
                tsugu@slrpnk.netT This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                Those are all official sources tho, but you have to trust me not to put in malicious commands of course.

                ulrich@feddit.orgU 1 Reply Last reply
                4
                • tsugu@slrpnk.netT [email protected]

                  Those are all official sources tho, but you have to trust me not to put in malicious commands of course.

                  ulrich@feddit.orgU This user is from outside of this forum
                  ulrich@feddit.orgU This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

                  Oh so you are essentially personally maintaining the sources list?

                  tsugu@slrpnk.netT 1 Reply Last reply
                  6
                  • ulrich@feddit.orgU [email protected]

                    Oh so you are essentially personally maintaining the sources list?

                    tsugu@slrpnk.netT This user is from outside of this forum
                    tsugu@slrpnk.netT This user is from outside of this forum
                    [email protected]
                    wrote last edited by [email protected]
                    #9

                    Yep. I did automate it the best I could (I'm not creating entries for thousands of apps manually) but it will indeed require manual maintenance as the apps will change their installation methods over time.

                    1 Reply Last reply
                    1
                    • tsugu@slrpnk.netT [email protected]

                      I understand that people treat snap as if it was a contagious virus but the developers chose the method purposely. A lot of KDE apps are only distributed as snaps for example, k3b comes to mind. VLC as well.

                      There are flatpak versions but they aren't official, which defeats the point a bit.

                      I do however plan to somehow add the ability to prefer flatpak, since a few of the entries have both a flatpak and snap field.

                      ulrich@feddit.orgU This user is from outside of this forum
                      ulrich@feddit.orgU This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #10

                      the developers chose the method purposely

                      They chose it because it's often the only way they can distribute packages to Ubuntu users. Which was the whole point all along; Canonical taking control of app distribution.

                      tsugu@slrpnk.netT 1 Reply Last reply
                      16
                      • ulrich@feddit.orgU [email protected]

                        the developers chose the method purposely

                        They chose it because it's often the only way they can distribute packages to Ubuntu users. Which was the whole point all along; Canonical taking control of app distribution.

                        tsugu@slrpnk.netT This user is from outside of this forum
                        tsugu@slrpnk.netT This user is from outside of this forum
                        [email protected]
                        wrote last edited by [email protected]
                        #11

                        But why choose snap only? Flatpak works on Ubuntu just fine, and on other distros obviously, so they could just choose that. Blender only officially support snap too. Vivaldi for example made a blog post about how snap has better sandboxing of chromium. https://social.vivaldi.net/@ruario/113164179328218870

                        A 1 Reply Last reply
                        2
                        • tsugu@slrpnk.netT [email protected]

                          I created a script that always installs apps from their official source

                          https://github.com/Tsu-gu/appfetch/

                          It's a proof of concept of an idea I had a while ago. I dislike having to hunt down apps for my Linux machine when I want them from an official source. Some apps are packages as tarballs, some as .debs, some as install scripts that download a binary, some are flatpaks and snaps.

                          I created a yaml file with only verified apps from flathub and snapcraft, and added a few apps outside of them that I could think of.

                          The ultimate goal is the user just typing the names of what they want, and the script will just get it. They shouldn't waste time with picking the right source.

                          mrsoup@lemmy.zipM This user is from outside of this forum
                          mrsoup@lemmy.zipM This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #12

                          I think that using some "custom" package names for internal args is not the best choice.

                          Anyway, later I'll take a better look at it and probably contribute to it. Ty

                          tsugu@slrpnk.netT 1 Reply Last reply
                          2
                          • mrsoup@lemmy.zipM [email protected]

                            I think that using some "custom" package names for internal args is not the best choice.

                            Anyway, later I'll take a better look at it and probably contribute to it. Ty

                            tsugu@slrpnk.netT This user is from outside of this forum
                            tsugu@slrpnk.netT This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #13

                            Could you elaborate? I'm not the best programmer so I'm open to suggestions.

                            mrsoup@lemmy.zipM 1 Reply Last reply
                            0
                            • tsugu@slrpnk.netT [email protected]

                              Could you elaborate? I'm not the best programmer so I'm open to suggestions.

                              mrsoup@lemmy.zipM This user is from outside of this forum
                              mrsoup@lemmy.zipM This user is from outside of this forum
                              [email protected]
                              wrote last edited by [email protected]
                              #14

                              I saw that "version" and "update" are inside apps.yaml instead inside the program itself like "search". I see why version helps to be there which gets updated with the list, but the update link looks more like a quirk to be inside apps list.
                              And it would make sense to distinguish program version and apps list version.

                              tsugu@slrpnk.netT 1 Reply Last reply
                              0
                              • mrsoup@lemmy.zipM [email protected]

                                I saw that "version" and "update" are inside apps.yaml instead inside the program itself like "search". I see why version helps to be there which gets updated with the list, but the update link looks more like a quirk to be inside apps list.
                                And it would make sense to distinguish program version and apps list version.

                                tsugu@slrpnk.netT This user is from outside of this forum
                                tsugu@slrpnk.netT This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #15

                                That's a good point. I will also probably need a better update method than rm -rf-ing the files and replacing them with each update.

                                1 Reply Last reply
                                0
                                • tsugu@slrpnk.netT [email protected]

                                  I created a script that always installs apps from their official source

                                  https://github.com/Tsu-gu/appfetch/

                                  It's a proof of concept of an idea I had a while ago. I dislike having to hunt down apps for my Linux machine when I want them from an official source. Some apps are packages as tarballs, some as .debs, some as install scripts that download a binary, some are flatpaks and snaps.

                                  I created a yaml file with only verified apps from flathub and snapcraft, and added a few apps outside of them that I could think of.

                                  The ultimate goal is the user just typing the names of what they want, and the script will just get it. They shouldn't waste time with picking the right source.

                                  thejevans@lemmy.mlT This user is from outside of this forum
                                  thejevans@lemmy.mlT This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #16

                                  Genuine question: Why would I use this as opposed to Nix? Between nixpkgs and the NUR, there are an insane amount of packages available, and you can build everything from source if you wish.

                                  tsugu@slrpnk.netT 1 Reply Last reply
                                  5
                                  • thejevans@lemmy.mlT [email protected]

                                    Genuine question: Why would I use this as opposed to Nix? Between nixpkgs and the NUR, there are an insane amount of packages available, and you can build everything from source if you wish.

                                    tsugu@slrpnk.netT This user is from outside of this forum
                                    tsugu@slrpnk.netT This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #17

                                    It's meant for people who prefer their apps from the official sources rather than repackaged. All this script dies is make it easy so you don't have to google the app's name and search for an install method on its website.

                                    thejevans@lemmy.mlT 1 Reply Last reply
                                    3
                                    • tsugu@slrpnk.netT [email protected]

                                      It's meant for people who prefer their apps from the official sources rather than repackaged. All this script dies is make it easy so you don't have to google the app's name and search for an install method on its website.

                                      thejevans@lemmy.mlT This user is from outside of this forum
                                      thejevans@lemmy.mlT This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #18

                                      right, that's what nix does if you build from source

                                      tsugu@slrpnk.netT 1 Reply Last reply
                                      2
                                      • thejevans@lemmy.mlT [email protected]

                                        right, that's what nix does if you build from source

                                        tsugu@slrpnk.netT This user is from outside of this forum
                                        tsugu@slrpnk.netT This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #19

                                        If you want to build from source, this brings nothing of value. Nix has pretty much everything.

                                        thejevans@lemmy.mlT 1 Reply Last reply
                                        5
                                        • tsugu@slrpnk.netT [email protected]

                                          If you want to build from source, this brings nothing of value. Nix has pretty much everything.

                                          thejevans@lemmy.mlT This user is from outside of this forum
                                          thejevans@lemmy.mlT This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #20

                                          with that being the case, correct me if I'm wrong, but your pitch is that users should trust your manually compiled and maintained commands to install things because you're guaranteeing that the binaries being installed by your commands are from official sources, and that is better (in at least some cases) than cached binaries from something like nixpkgs, where the trust we are asked to give is that the cache is built correctly from source.

                                          tsugu@slrpnk.netT 1 Reply Last reply
                                          5
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups