跳到主要内容
知仓学习社ZHICANG

installing-julia

Use when your machine does not have JuliaLang runtime

执行命令联网严重 2 · 高危 0hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么执行命令联网
命中总数5 处
命中统计严重 2 · 高 0 · 中 0 · 低 0
逐条看命中(2 条严重或高危)
  • 严重 SKILL.md:15exec-pipe-to-shell
    $ curl -fsSL https://install.julialang.org | sh -s -- --yes
  • 严重 SKILL.md:26exec-pipe-to-shell
    Use this method when the `curl | sh` installer cannot run — for example, when a

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Installing Julia

If your machine does not have the Julia programming language runtime installed, follow the instructions below to install it.

Preferred: official installer

On macOS or Linux, run the following command:

$ curl -fsSL https://install.julialang.org | sh -s -- --yes

On Windows, run the following command in PowerShell:

PS> winget install --name Julia --id 9NJNWW8PVKMN -e -s msstore

Fallback: direct tarball install

Use this method when the curl | sh installer cannot run — for example, when a

sandbox or permission policy blocks piping a remote script directly into sh

(the "Code from External" pattern). This downloads the same official Julia

binary the installer would fetch, but as a plain file you extract locally

— no shell-pipe-to-interpreter.

Steps (macOS / Linux)

  1. Detect platform with uname -s (Linux / Darwin) and uname -m (x86_64 / aarch64 / arm64).
  1. Pick the URL fragment matching your platform:

| OS / Arch | URL path | Tarball suffix |

|------------------------|-----------------|------------------------|

| Linux x86_64 | linux/x64 | linux-x86_64.tar.gz |

| Linux aarch64 | linux/aarch64 | linux-aarch64.tar.gz |

| macOS x86_64 (Intel) | mac/x64 | mac-x86_64.tar.gz |

| macOS aarch64 (Apple) | mac/aarch64 | macaarch64.tar.gz |

  1. Resolve the latest stable patch (see [[finding-latest-julia-version]] for

the full set of methods — do not hard-code VERSION= from memory), then

download and extract:

   VERSION=$(curl -fsSL https://julialang-s3.julialang.org/bin/versions.json \
     | jq -r 'to_entries | map(select(.value.stable)) | map(.key)
              | sort_by(split(".") | map(tonumber? // 0)) | last')
   MINOR=${VERSION%.*}             # → e.g. 1.12
   ARCH_PATH=linux/aarch64         # ← from table above
   ARCH_SUFFIX=linux-aarch64       # ← from table above

   mkdir -p ~/julia-install && cd ~/julia-install
   curl -fsSLO "https://julialang-s3.julialang.org/bin/${ARCH_PATH}/${MINOR}/julia-${VERSION}-${ARCH_SUFFIX}.tar.gz"
   tar -xzf "julia-${VERSION}-${ARCH_SUFFIX}.tar.gz"
   export PATH="$HOME/julia-install/julia-${VERSION}/bin:$PATH"
   julia --version
  1. To persist PATH across sessions, append the export PATH=... line to

~/.bashrc, ~/.zshrc, or the appropriate shell profile.

Windows fallback

If winget is unavailable, download the .zip package from

<https://julialang.org/downloads/>, extract it, and add the inner bin\ directory to PATH.

Notes

  • The tarball is the same artifact the official installer / juliaup would fetch — only the delivery mechanism differs.
  • Version switching via juliaup add <version> is NOT available with this method; install another tarball to use a different version.
  • In container or CI environments where PATH is set per-command, reference julia by full path ($HOME/julia-install/julia-<VERSION>/bin/julia) instead of relying on shell profile.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,027
本站分层T1
该仓技能数1910
原文件路径plugins/AtelierArith/atelier-arith-julia-development-skills/skills/installing-julia/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 1910 个技能