Automic VaultAutomic Vault

brew

Install g-ls with Homebrew, MacPorts, Nix, apk, apt, dnf, scoop

Powerful and cross-platform ls. Version 0.31.2 via Homebrew; verified 2026-04-15.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install g-ls

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install g-ls

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

Linux

Nixverified · 92%
nix profile install nixpkgs#g-ls

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

Alpine Linux apkverified · 92%
sudo apk add g++

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

Debian aptverified · 92%
sudo apt install g++

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

Fedora dnfverified · 92%
sudo dnf install gcc-c++

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

Windows

Scoopverified · 92%
scoop install main/g

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

overview

Package summary

Powerful and cross-platform ls

Commands and aliases

  • g

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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`.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.31.2
manager updated2026-04-15
local dataok
upstreamcurrent
latest detectedv0.31.2

https://github.com/Equationzhao/g

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:g-ls
Version0.31.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/g-ls
Homepagehttps://equationzhao.github.io/g/
Repositoryhttps://github.com/Equationzhao/g
Upstream docshttps://equationzhao.github.io/g
LicenseMIT
Source archivehttps://github.com/Equationzhao/g/archive/refs/tags/v0.31.2.tar.gz
Last updated2026-04-15T19:19:20+09:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

g-ls

nix profile install nixpkgs#g-ls
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • 1 optional deps
  • installed executable or alias match
  • Matched by: 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 dependencies
  • 1 provides
  • 1 optional deps
  • installed executable or alias match
  • Matched by: 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 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: 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 dependencies
  • 3 provides
  • installed executable or alias match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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