I only discovered this recently, and it’s very handy.

Piping scripts directly to bash is a security risk. You can always download the scripts, inspect them and run locally if you so choose.

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    2 days ago

    The URL can point to a different file. People can post maliciously similar URLs and trick you into running something else.

    With a repository you have some semblance of “people have looked at this before”. Packages are signed and it will provide a standard way to uninstall and upgrade in the future.

    There’s literally no good reason to replace it with a shell script on a website.

    • interdimensionalmeme@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Here is a good reason

      root@proxmox:~# apt install vaulrwarden
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      E: Unable to locate package vaulrwarden
      root@proxmox:~#
      

      It’s the difference between “it works” and “it doesn’t”

    • splendoruranium@infosec.pub
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      There’s literally no good reason to replace it with a shell script on a website.

      I fully agree that a package manager repository with all those tools would be preferable, but it doesn’t exist, does it? I mean… content is king. If the only way to get a certain program or functionality is a shell script on a website, then of course that’s what is going to be used.