Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix, apk, apt, dnf, scoop 安装 g-ls

查看 g-ls 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install g-ls

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install g-ls

MacPorts ports tree · sysutils/g-ls/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#g-ls

nixpkgs package indexes · pkgs/by-name/g-/g-ls/package.nix · 来源: api.github.com

Alpine Linux apk已验证 · 92%
sudo apk add g++

Alpine Linux edge package indexes · g++ · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install g++

Debian stable package indexes · g++ · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gcc-c++

Fedora Rawhide package metadata · gcc-c++ · 来源: dl.fedoraproject.org

Windows

Scoop已验证 · 92%
scoop install main/g

Scoop official bucket manifest trees · bucket/g.json · 来源: api.github.com

概览

软件包摘要

Powerful and cross-platform ls

历史

项目历史与用法

g is a Go-based, cross-platform `ls` alternative packaged in Homebrew as `g-ls` and installed as the `g` executable. The upstream README describes it as feature-rich and customizable, with icons, colors, multiple layouts, git status integration, fuzzy path matching, and hyperlink support.

项目历史

The repository was created in April 2023, and GitHub Releases show v0.2.1 published the same day. The README frames g as an enhanced directory lister rather than a file manager, adding visual layouts and metadata to the familiar `ls` role.

The project continued through frequent 0.x releases; by 2025 it had reached the 0.30 series, and the visible release feed shows v0.31.2 in 2026. The bundled manual documents a broad option surface for display formats, filtering, fuzzy indexing, shell initialization, sorting, and metadata columns.

采用历史

Official installation notes document Arch AUR, Homebrew, a Homebrew tap, MacPorts, Scoop, pre-built release artifacts, deb packages, install scripts, and `go install`. That spread follows the usual adoption route for Go CLIs: direct binary releases, Go module installation, and native package-manager recipes.

使用方式

Users run `g path(s)` as an `ls` replacement and enable options such as icons, long format, tree layout, JSON, markdown, CSV, git status, MIME and charset display, fuzzy path matching, and shell initialization scripts for Bash, Zsh, Fish, PowerShell, and Nushell.

为什么软件包爱好者会关心

g is interesting in the crowded modern-ls category because it combines exa/eza-style visual listing, lsd-style icons, git metadata, multiple machine-readable output formats, and shell integration in a single Go binary. For package maintainers, the main wrinkle is name collision: the package is `g-ls` in Homebrew while the executable is `g`.

时间线

  • 2023: GitHub repository created.
  • 2023: Release v0.2.1 published.
  • 2025: Release v0.30.0 published.
  • 2026: Release v0.31.2 published.

Related projects

  • The README says g is highly inspired by exa/eza, lsd, and ls-go. It also describes zoxide- and fzf-like fuzzy path matching, placing g near both modern `ls` replacements and shell-navigation helpers.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本0.31.2
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v0.31.2

https://github.com/Equationzhao/g

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:g-ls
版本0.31.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/g-ls
主页https://equationzhao.github.io/g/
仓库https://github.com/Equationzhao/g
上游文档https://equationzhao.github.io/g
许可证MIT
源码归档https://github.com/Equationzhao/g/archive/refs/tags/v0.31.2.tar.gz
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameg-ls
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

g-ls

nix profile install nixpkgs#g-ls
  • normalized package name match
  • 匹配方式:G Ls
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/g-/g-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

g-ls

sudo port install g-ls
  • normalized package name match
  • 匹配方式:G Ls
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/g-ls/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

g++ 4:14.2.0-1

GNU C++ compiler

sudo apt install g++
  • Section: devel
  • Architecture: amd64
  • Source Package: gcc-defaults
  • 6 依赖
  • 1 提供
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:G
Debian stable package indexes · deb.debian.org · Debian stable package indexes: g++ from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt92%

g++ 4:13.2.0-7ubuntu1

GNU C++ compiler

sudo apt install g++
  • Section: devel
  • Architecture: amd64
  • Source Package: gcc-defaults
  • 6 依赖
  • 1 提供
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:G
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: g++ from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk92%

g++ 15.2.0-r5

GNU C++ standard library and compiler

https://gcc.gnu.org

sudo apk add g++
  • License: GPL-2.0-or-later AND LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: gcc
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:G
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: g++ from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf92%

gcc-c++ 16.1.1-2.fc45

C++ support for GCC

http://gcc.gnu.org

sudo dnf install gcc-c++
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gcc
  • 12 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:G
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gcc-c++ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
Scoop92%

main/g

scoop install main/g
  • installed executable or alias match
  • 匹配方式:G
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/g.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment