macOS
brew install lesslocal Homebrew formula metadata
sudo port install lessMacPorts ports tree · textproc/less/Portfile · 来源: api.github.com
安装
brew install lesslocal Homebrew formula metadata
sudo port install lessMacPorts ports tree · textproc/less/Portfile · 来源: api.github.com
sudo apk add lessAlpine Linux edge package indexes · less · 来源: dl-cdn.alpinelinux.org
sudo dnf install lessFedora Rawhide package metadata · less · 来源: dl.fedoraproject.org
nix profile install nixpkgs#lessnixpkgs package indexes · pkgs/by-name/le/less/package.nix · 来源: api.github.com
sudo pacman -S lessArch Linux sync databases · less · 来源: geo.mirror.pkgbuild.com
sudo zypper install lessopenSUSE Tumbleweed package metadata · less · 来源: download.opensuse.org
choco install LessChocolatey community package catalog · Less · 来源: community.chocolatey.org
scoop install main/lessScoop official bucket manifest trees · bucket/less.json · 来源: api.github.com
winget install --id jftuga.less -eWindows Package Manager source index · jftuga.less · 来源: cdn.winget.microsoft.com
概览
Pager program similar to more
历史
less is a classic terminal pager: a free, open source program for viewing text one screen at a time, similar to more but with richer navigation and search behavior.
The official FAQ says less was written by Mark Nudelman and is maintained by him. The source tree's copyright file dates the code line to 1984, and the README identifies the distribution as part of the GNU project while also documenting a separate Less License option.
The program has stayed under active maintenance for decades. Greenwood Software's release page records many numbered releases from the 2010s and 2020s, while the NEWS file tracks ongoing pager features such as OSC 8 hyperlink handling, command mapping, prompt expansion, mouse support, regex behavior, and platform fixes.
The official home page describes less as present on most Linux, Unix, and Mac OS systems and on many other operating systems. The FAQ also notes distribution through standard Unix-like system software and GNU archives.
Its adoption is helped by being a drop-in pager for commands and environment variables such as PAGER. Developers use it through man, git, shells, build logs, and package-manager output without always invoking it directly.
less opens files or standard input for interactive viewing, with forward and backward movement, searching, marks, filtering, follow mode, and configurable key bindings through lesskey-style configuration.
Package builds usually install the less and lesskey executables plus manual pages. The README recommends downloading numbered release packages from Greenwood Software for ordinary use and cloning the Git repository only for source development.
less is package-nerd bedrock: a tiny command that sits in the path of almost every Unix developer workflow. Its value is partly invisible because many tools delegate paging to it, making the package a system utility dependency rather than an application people consciously launch.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/lesskey~/.config/lesskey~/.lesskey/usr/local/etc/syslesskey~/_lesskeylesskey.inic:\syslesskey可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
less | cli | 全局可执行文件 | |
lesskey | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.greenwoodsoftware.com/less/index.html
安装元数据
| 软件包键 | brew:less |
|---|---|
| 版本 | 704 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/less |
| 主页 | https://www.greenwoodsoftware.com/less/index.html |
| 仓库 | https://github.com/gwsw/less |
| 上游文档 | https://www.greenwoodsoftware.com/less/faq.html |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://www.greenwoodsoftware.com/less/less-704.tar.gz |
| 最后更新 | 2026-06-06T20:47:51Z |
| Pulse | updated |
| 依赖 | ncurses, pcre2 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | less |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
less 668-1
pager program similar to more
http://www.greenwoodsoftware.com/less/
sudo apt install lessless
nix profile install nixpkgs#lessless 590-2ubuntu2
pager program similar to more
http://www.greenwoodsoftware.com/less/
sudo apt install lessless 702-r0
File pager
https://www.greenwoodsoftware.com/less/
sudo apk add lessless-doc 702-r0
File pager (documentation)
https://www.greenwoodsoftware.com/less/
sudo apk add less-docless 702-1.fc45
A text file browser similar to more, but better
https://www.greenwoodsoftware.com/less/
sudo dnf install lessless-color 702-1.fc45
Colorizers for less
https://www.greenwoodsoftware.com/less/
sudo dnf install less-colorless 1:704-1
A terminal based program for viewing text files
https://www.greenwoodsoftware.com/less/
sudo pacman -S lessless 702-1.1
Text File Browser and Pager Similar to more
https://www.greenwoodsoftware.com/less/
sudo zypper install lessless
sudo port install lessLess
choco install Lessmain/less
scoop install main/lessjftuga.less
winget install --id jftuga.less -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.