Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 open-ocd

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install open-ocd

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install openocd

MacPorts ports tree · cross/openocd/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add openocd

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

Debian apt已验证 · 92%
sudo apt install openocd

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

Fedora dnf已验证 · 92%
sudo dnf install openocd

Fedora Rawhide package metadata · openocd · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#openocd

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

Arch Linux pacman已验证 · 92%
sudo pacman -S openocd

Arch Linux sync databases · openocd · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install openocd

openSUSE Tumbleweed package metadata · openocd · 来源: download.opensuse.org

Windows

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

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

概览

软件包摘要

On-chip debugging, in-system programming and boundary-scan testing

命令和别名

  • openocd

历史

项目历史与用法

OpenOCD, the Open On-Chip Debugger, is a command-line server and toolset for embedded debugging, in-system flash programming, and boundary-scan work. It sits between host debuggers such as GDB and hardware debug adapters that speak transports such as JTAG or SWD.

项目历史

OpenOCD was created by Dominic Rath as part of a 2005 diploma thesis at the University of Applied Sciences Augsburg. Its documentation describes the project as having grown from that thesis into an open-source project supported by software and hardware developers around the world.

The project's scope expanded from JTAG-centered on-chip debugging into a practical embedded bring-up tool: it handles debug adapters, target configuration scripts, CPU cores, flash chips, FPGA/PLD loading paths, and server interfaces for GDB, Telnet, and RPC clients.

采用历史

OpenOCD became a common tool in embedded development because it gives open tooling a shared place to encode adapter and board knowledge. The user guide documents bundled script libraries for interfaces, boards, targets, and site-specific configuration, which is why many vendor and community board workflows invoke openocd with one or two -f script arguments.

Distribution packaging spread it broadly across embedded Linux and desktop development environments. Homebrew, Debian, Fedora, Arch, Nix, Scoop, and other package managers expose the same openocd executable, making it a portable default for projects that want to document one debugger command.

使用方式

A typical OpenOCD session names an adapter script and a board or target script, starts the OpenOCD server, waits for a JTAG or SWD target to be detected, and then connects GDB to the server for breakpoints, stepping, register access, and memory inspection.

For production and lab work, OpenOCD is also used for flash programming and boundary-scan tasks. The documentation covers NOR and NAND flash support, PLD/FPGA loading commands, and SVF/XSVF execution for JTAG test patterns.

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

OpenOCD is package-nerd significant because its executable is only half the package. The script library, USB permissions, adapter driver choices, Tcl integration, and packaged target definitions are what turn the binary into a usable hardware tool.

It also shows why embedded packages are unusually sensitive to version and build options: support for a specific probe, chip, flash driver, or board script can decide whether a firmware workflow works at all.

时间线

  • 2005: Dominic Rath created OpenOCD as part of a diploma thesis at the University of Applied Sciences Augsburg.
  • 2008-2025: the user guide credits the OpenOCD Project across this span, with earlier named contributors credited for 2007-2010 documentation work.
  • 2026-06-29: the OpenOCD user guide snapshot used for this enrichment documents release 0.12.0+dev.

Related projects

  • GDB is the debugger most commonly paired with OpenOCD for source-level debugging.
  • JTAG, SWD, SVF, XSVF, and IEEE 1149.1 are the hardware and test-procedure ecosystems that explain much of OpenOCD's command surface.

安全态势

风险级别:绿色

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 元数据适用于 12 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
openocd.cfg$(INSTALLDIR)/scripts

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本0.12.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://openocd.org/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://openocd.org/none 置信度

安装元数据

软件包元数据

软件包键brew:open-ocd
版本0.12.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/open-ocd
主页https://openocd.org/
仓库https://github.com/openocd-org/openocd
上游文档https://openocd.org/doc/html/index.html
许可证GPL-2.0-or-later
源码归档https://downloads.sourceforge.net/project/openocd/openocd/0.12.0/openocd-0.12.0.tar.bz2
依赖capstone, hidapi, libftdi, libusb
构建依赖pkgconf
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

MacPorts94%

openocd

sudo port install openocd
  • installed executable or alias match
  • 匹配方式:Openocd
MacPorts ports tree · api.github.com · MacPorts ports tree: cross/openocd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

openocd 0.12.0-3+b2

Open on-chip JTAG/SWD debug solution for embedded target devices

http://openocd.sourceforge.net/

sudo apt install openocd
  • Section: embedded
  • Architecture: amd64
  • Source Package: openocd
  • 7 依赖
  • installed executable or alias match
  • 匹配方式:Openocd
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openocd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

openocd

nix profile install nixpkgs#openocd
  • installed executable or alias match
  • 匹配方式:Openocd
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/op/openocd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

openocd 0.12.0-1build2

Open on-chip JTAG/SWD debug solution for embedded target devices

http://openocd.sourceforge.net/

sudo apt install openocd
  • Section: universe/embedded
  • Architecture: amd64
  • 8 依赖
  • installed executable or alias match
  • 匹配方式:Openocd
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openocd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

openocd 0.12.0-r7

Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing

https://openocd.org/

sudo apk add openocd
  • License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only
  • Architecture: x86_64
  • Source Package: openocd
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Openocd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openocd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openocd-dev 0.12.0-r7

Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing (development files)

https://openocd.org/

sudo apk add openocd-dev
  • License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only
  • Architecture: x86_64
  • Source Package: openocd
  • installed executable or alias match
  • 匹配方式:Openocd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openocd-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openocd-doc 0.12.0-r7

Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing (documentation)

https://openocd.org/

sudo apk add openocd-doc
  • License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only
  • Architecture: x86_64
  • Source Package: openocd
  • installed executable or alias match
  • 匹配方式:Openocd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openocd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openocd-udev 0.12.0-r7

udev rules for openocd

https://openocd.org/

sudo apk add openocd-udev
  • License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only
  • Architecture: x86_64
  • Source Package: openocd
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Openocd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openocd-udev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf92%

openocd 0.12.0-3.fc42.5

Debugging, in-system programming and boundary-scan testing for embedded devices

https://sourceforge.net/projects/openocd

sudo dnf install openocd
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: openocd
  • 8 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Openocd
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: openocd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman92%

openocd 1:0.12.0-5

Debugging, in-system programming and boundary-scan testing for embedded target devices

https://openocd.org

sudo pacman -S openocd
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • 7 依赖
  • installed executable or alias match
  • 匹配方式:Openocd
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: openocd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper92%

openocd 0.12.0-2.11

Debugging, in-system programming and boundary-scan testing for embedded devices

http://openocd.sourceforge.net/

sudo zypper install openocd
  • License: GPL-2.0-only
  • Category: Development/Tools/Debuggers
  • Architecture: x86_64
  • Source Package: openocd
  • 10 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Openocd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: openocd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

openocd-data 0.12.0-2.11

Hardware Scripts for OpenOCD

http://openocd.sourceforge.net/

sudo zypper install openocd-data
  • License: GPL-2.0-only
  • Category: Development/Tools/Debuggers
  • Architecture: noarch
  • Source Package: openocd
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Openocd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: openocd-data from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Scoop92%

main/openocd

scoop install main/openocd
  • installed executable or alias match
  • 匹配方式:Openocd
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/openocd.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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment