macOS
brew install trurllocal Homebrew formula metadata
sudo port install trurlMacPorts ports tree · net/trurl/Portfile · 来源: api.github.com
安装
brew install trurllocal Homebrew formula metadata
sudo port install trurlMacPorts ports tree · net/trurl/Portfile · 来源: api.github.com
sudo apk add trurlAlpine Linux edge package indexes · trurl · 来源: dl-cdn.alpinelinux.org
sudo dnf install trurlFedora Rawhide package metadata · trurl · 来源: dl.fedoraproject.org
nix profile install nixpkgs#trurlnixpkgs package indexes · pkgs/by-name/tr/trurl/package.nix · 来源: api.github.com
sudo pacman -S trurlArch Linux sync databases · trurl · 来源: geo.mirror.pkgbuild.com
sudo zypper install trurlopenSUSE Tumbleweed package metadata · trurl · 来源: download.opensuse.org
winget install --id cURL.trurl -eWindows Package Manager source index · cURL.trurl · 来源: cdn.winget.microsoft.com
概览
Command-line tool for URL parsing and manipulation
历史
trurl is a curl-adjacent command-line tool for parsing, normalizing, extracting, and modifying URLs using libcurl's URL parser.
Daniel Stenberg introduced trurl in April 2023 as a small command-line tool in the spirit of Unix 'tr', but for URLs. He wrote that it was created on March 31, 2023 to help shell script authors avoid repeatedly inventing unsafe or inconsistent URL parsing.
The curl project page positions trurl as a companion to curl: it uses libcurl's URL parser, so it understands URLs the same way curl does. That makes it especially useful in scripts that already rely on curl and need to manipulate URLs before passing them to other tools.
The GitHub repository stayed intentionally compact: C source, tests, a man page, release notes, and compatibility notes around libcurl versions. Releases on curl.se and GitHub turned it from a fresh helper into a packaged utility available through Homebrew and multiple Unix distributions.
trurl was adopted in the curl ecosystem because URLs are deceptively hard to parse correctly in shell. Instead of sed, awk, cut, or hand-rolled regular expressions, users can ask trurl for structured URL parts, normalized URLs, redirects, query edits, or JSON output.
Its package-manager spread is unusually broad for a young utility: the input package facts list Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, Nix, MacPorts, and openSUSE-style packages, matching its role as a small Unix command that distribution maintainers can ship easily.
trurl can change hosts, schemes, ports, paths, query strings, and fragments; append path or query components; trim tracking parameters; sort query pairs; handle redirects; read URLs from files or stdin; and emit JSON for scripts.
For package nerds, the appeal is that trurl is a purpose-built URL transformer that composes cleanly with curl, xargs, shell pipelines, package build scripts, and CI jobs without pulling in a heavier language runtime.
trurl is significant because it packages a common but error-prone scripting task into a tiny, curl-family binary. It is the sort of tool that shows up in dotfiles, release scripts, URL cleanup jobs, and packaging automation once people stop trusting ad hoc regex parsing.
Its libcurl dependency also matters: package maintainers can reason about its URL behavior in terms of the same parser used by curl, while its compatibility table documents which libcurl versions enable which features.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
trurl | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:trurl |
|---|---|
| 版本 | 0.16.1 |
| 软件包管理器 | Homebrew |
| 主页 | https://curl.se/trurl/ |
| 仓库 | https://github.com/curl/trurl |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
trurl 0.16.1-1
command line tool for URL parsing and manipulation
sudo apt install trurltrurl
nix profile install nixpkgs#trurltrurl 0.9-1build2
command line tool for URL parsing and manipulation
sudo apt install trurltrurl 0.16.1-r1
command line tool for URL parsing and manipulation
sudo apk add trurltrurl-doc 0.16.1-r1
command line tool for URL parsing and manipulation (documentation)
sudo apk add trurl-doctrurl 0.16.1-6.fc45
Command line tool for URL parsing and manipulation
sudo dnf install trurltrurl 0.16.1-1
Command line tool for URL parsing and manipulation
sudo pacman -S trurltrurl 0.16.1-4.3
Command line tool for URL parsing and manipulation
sudo zypper install trurltrurl-zsh-completion 0.16.1-4.3
Zsh Completion for trurl
sudo zypper install trurl-zsh-completiontrurl
sudo port install trurlcURL.trurl
winget install --id cURL.trurl -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.