macOS
brew install dockutillocal Homebrew formula metadata
安装
brew install dockutillocal Homebrew formula metadata
nix profile install nixpkgs#dockutilnixpkgs package indexes · pkgs/by-name/do/dockutil/package.nix · 来源: api.github.com
概览
Tool for managing dock items
历史
dockutil is a long-running macOS command-line tool for adding, removing, moving, finding, and listing Dock items across one user, a specific Dock plist, or many home directories.
The GitHub repository was created in July 2011, making dockutil one of the older macOS administration tools in this batch. Its README describes a CLI for managing Dock items including applications, folders, stacks, and URLs, with operations that can target the current user, a specified plist, a home directory, or all homes.
The changelog shows a long maintenance path through macOS changes: 1.1 improved path handling and restart behavior; 2.0 changed preference handling; 2.0.3 waited for Apple's first-login Dock setup; 2.0.5 fixed macOS 10.12 Dock restart behavior; 3.0.0 rewrote the tool in Swift for macOS 12.3 compatibility; and 3.1.x kept pace with Sonoma-era behavior.
dockutil has been adopted mostly by Mac admins, imaging workflows, onboarding scripts, labs, and managed-device setups that need repeatable Dock state. Its `--allhomes`, plist targeting, and Default User Template examples are signs of fleet-management rather than casual end-user use.
The Homebrew formula remains active and reported stable version 3.1.3, 349 installs in the previous 30 days, and 3,249 installs in the previous year as of June 30, 2026. That is strong relative usage for a narrow macOS administration utility.
Common commands include `dockutil --add /Applications/TextEdit.app`, `dockutil --remove 'System Preferences' --allhomes`, `dockutil --move 'System Preferences' --position 2 --allhomes`, `dockutil --list`, and `dockutil --add '' --type spacer`. Options handle position, replacement, Dock section, folder view/display/sort behavior, `--no-restart`, `--allhomes`, and alternate home locations.
dockutil is package-nerd significant because it gives admins a scriptable abstraction over a user-interface preference file that Apple changes over time. Its value is not glamour; it is preserving boring, repeatable Dock state across macOS releases and managed-user contexts.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dockutil | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/kcrawford/dockutil
安装元数据
| 软件包键 | brew:dockutil |
|---|---|
| 版本 | 3.1.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/dockutil |
| 主页 | https://github.com/kcrawford/dockutil |
| 仓库 | https://github.com/kcrawford/dockutil |
| 上游文档 | https://github.com/kcrawford/dockutil#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/kcrawford/dockutil/archive/refs/tags/3.1.3.tar.gz |
| macOS 提供的库 | swift |
| Bottle | 可用 (于 arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dockutil |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
dockutil
nix profile install nixpkgs#dockutil来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.