Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. #nixos is too complex for me, so I decided to write a 110 lines Python script to help manage a fixed list of packages on #archlinux

#nixos is too complex for me, so I decided to write a 110 lines Python script to help manage a fixed list of packages on #archlinux

Scheduled Pinned Locked Moved Uncategorized
nixosarchlinuxsysadmin
7 Posts 4 Posters 5 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.
  • bug@fosstodon.orgB This user is from outside of this forum
    bug@fosstodon.orgB This user is from outside of this forum
    bug@fosstodon.org
    wrote last edited by
    #1

    #nixos is too complex for me, so I decided to write a 110 lines Python script to help manage a fixed list of packages on #archlinux

    It reports inconsistencies between your requested packages list and what's actually on the system.

    The list can contain inline comments and group packages.

    Basically, a declarative Archlinux packages helper. Anyone interested?

    PS : I have a bug to report in pacman and I'm unable to get an account on the gitlab (they didn't reply to my mail).

    #sysadmin

    Link Preview Image
    monotux@hachyderm.ioM bojidar_bg@mastodon.socialB jay@social.zerojay.comJ 3 Replies Last reply
    0
    • bug@fosstodon.orgB bug@fosstodon.org

      #nixos is too complex for me, so I decided to write a 110 lines Python script to help manage a fixed list of packages on #archlinux

      It reports inconsistencies between your requested packages list and what's actually on the system.

      The list can contain inline comments and group packages.

      Basically, a declarative Archlinux packages helper. Anyone interested?

      PS : I have a bug to report in pacman and I'm unable to get an account on the gitlab (they didn't reply to my mail).

      #sysadmin

      Link Preview Image
      monotux@hachyderm.ioM This user is from outside of this forum
      monotux@hachyderm.ioM This user is from outside of this forum
      monotux@hachyderm.io
      wrote last edited by
      #2

      @bug wait until you discover #ansible

      bug@fosstodon.orgB 1 Reply Last reply
      0
      • monotux@hachyderm.ioM monotux@hachyderm.io

        @bug wait until you discover #ansible

        bug@fosstodon.orgB This user is from outside of this forum
        bug@fosstodon.orgB This user is from outside of this forum
        bug@fosstodon.org
        wrote last edited by
        #3

        @monotux it's funny you say that, because I gave yet another chance to Ansible yesterday, and I'm never going to use it ever again.

        Gather facts disabled, explicit python interpreter path, control master for persistent ssh connection, disabled the package cache update: it still takes 22 seconds to execute zero change for syncing one file and checking the presence of a package. A simple equivalent ssh command, 490 ms.

        monotux@hachyderm.ioM 1 Reply Last reply
        0
        • bug@fosstodon.orgB bug@fosstodon.org

          @monotux it's funny you say that, because I gave yet another chance to Ansible yesterday, and I'm never going to use it ever again.

          Gather facts disabled, explicit python interpreter path, control master for persistent ssh connection, disabled the package cache update: it still takes 22 seconds to execute zero change for syncing one file and checking the presence of a package. A simple equivalent ssh command, 490 ms.

          monotux@hachyderm.ioM This user is from outside of this forum
          monotux@hachyderm.ioM This user is from outside of this forum
          monotux@hachyderm.io
          wrote last edited by
          #4

          @bug yes, it is slow, and a script like yours is faster.

          but that is not the point. the point is that you can use the same interface (yaml lol) to interface with APIs, machines, orchestrate changes on clusters et c all without reinventing the wheel. a terrifying amount of manufacturers and projects have ansible collections available.

          its like the old saying regarding perl and c, "with c you can write a fast program, but with perl you can write a program fast". scripts will be faster but at some point you will end up reinventing the wheel again and again, where you might save time just using ansible.

          bug@fosstodon.orgB 1 Reply Last reply
          0
          • monotux@hachyderm.ioM monotux@hachyderm.io

            @bug yes, it is slow, and a script like yours is faster.

            but that is not the point. the point is that you can use the same interface (yaml lol) to interface with APIs, machines, orchestrate changes on clusters et c all without reinventing the wheel. a terrifying amount of manufacturers and projects have ansible collections available.

            its like the old saying regarding perl and c, "with c you can write a fast program, but with perl you can write a program fast". scripts will be faster but at some point you will end up reinventing the wheel again and again, where you might save time just using ansible.

            bug@fosstodon.orgB This user is from outside of this forum
            bug@fosstodon.orgB This user is from outside of this forum
            bug@fosstodon.org
            wrote last edited by
            #5

            @monotux it's not just slow, it's unusable at this point.

            Anyway, the script goes a little further than just a list of packages. It makes sure you have your dependency tree sane.

            1 Reply Last reply
            0
            • bug@fosstodon.orgB bug@fosstodon.org

              #nixos is too complex for me, so I decided to write a 110 lines Python script to help manage a fixed list of packages on #archlinux

              It reports inconsistencies between your requested packages list and what's actually on the system.

              The list can contain inline comments and group packages.

              Basically, a declarative Archlinux packages helper. Anyone interested?

              PS : I have a bug to report in pacman and I'm unable to get an account on the gitlab (they didn't reply to my mail).

              #sysadmin

              Link Preview Image
              bojidar_bg@mastodon.socialB This user is from outside of this forum
              bojidar_bg@mastodon.socialB This user is from outside of this forum
              bojidar_bg@mastodon.social
              wrote last edited by
              #6

              @bug *raises hand* I'd be interested! (I'd also love to just switch to Nix, but that sounds like a 2-weekend-and-it-keeps-going project, so maybe not right away 😂)
              Curious if your script supports pinning versions already (similar to the result of running `downgrade`).

              1 Reply Last reply
              0
              • bug@fosstodon.orgB bug@fosstodon.org

                #nixos is too complex for me, so I decided to write a 110 lines Python script to help manage a fixed list of packages on #archlinux

                It reports inconsistencies between your requested packages list and what's actually on the system.

                The list can contain inline comments and group packages.

                Basically, a declarative Archlinux packages helper. Anyone interested?

                PS : I have a bug to report in pacman and I'm unable to get an account on the gitlab (they didn't reply to my mail).

                #sysadmin

                Link Preview Image
                jay@social.zerojay.comJ This user is from outside of this forum
                jay@social.zerojay.comJ This user is from outside of this forum
                jay@social.zerojay.com
                wrote last edited by
                #7

                @bug Are you aware that there are other declarative style solutions out there for Arch? https://github.com/CyberShadow/aconfmgr for one.

                1 Reply Last reply
                2
                0
                • R relay@relay.infosec.exchange shared this topic
                  R relay@relay.mycrowd.ca shared this topic
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

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