macOS
brew install htpdatelocal Homebrew formula metadata
sudo port install htpdateMacPorts ports tree · net/htpdate/Portfile · 来源: api.github.com
安装
brew install htpdatelocal Homebrew formula metadata
sudo port install htpdateMacPorts ports tree · net/htpdate/Portfile · 来源: api.github.com
sudo apk add htpdateAlpine Linux edge package indexes · htpdate · 来源: dl-cdn.alpinelinux.org
sudo apt install htpdateDebian stable package indexes · htpdate · 来源: deb.debian.org
nix profile install nixpkgs#htpdatenixpkgs package indexes · pkgs/by-name/ht/htpdate/package.nix · 来源: api.github.com
概览
Synchronize time with remote web servers
历史
htpdate is a small HTTP Time Protocol utility that synchronizes a computer's clock from timestamps in web-server HTTP headers. It is a niche networking package for environments where NTP is blocked, unavailable, or inconvenient but outbound HTTP works.
The upstream site and repository describe HTP as synchronizing time with web servers as reference sources. htpdate retrieves date and time through HTTP requests, can behave similarly to a browser, works through proxy servers, and can run as a daemon for ongoing synchronization.
The project preserves a pragmatic limitation in its own documentation: usual accuracy is within about 0.5 seconds and can improve with multiple servers, but users needing better time discipline should use an NTP-family package. That framing explains htpdate's evolution as a fallback or constrained-network utility rather than a replacement for NTP, OpenNTPD, or chrony.
The input package facts record htpdate in Homebrew, Debian, Ubuntu, MacPorts, Nix, and Alpine. That packaging spread is notable for a small tool because its value is situational: it becomes useful exactly on machines and networks where the usual UDP-based time-sync path is not available.
htpdate is used to query one or more web servers, estimate clock offset from HTTP date headers, and either report or set/adjust local time. The man page and README emphasize proxy support, daemon use, IPv4/IPv6 options, HTTP/1.0 versus HTTP/1.1 behavior, and the tradeoff between convenience and precision.
For package nerds, htpdate is interesting because it is the kind of tiny utility that justifies a package slot through an edge case. It exists for restricted networks, proxy-only hosts, rescue scenarios, and systems where installing a full time-sync stack is more machinery than the job requires.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
htpdate | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:htpdate |
|---|---|
| 版本 | 2.0.2 |
| 软件包管理器 | Homebrew |
| 主页 | https://www.vervest.org/htp/ |
| 仓库 | https://github.com/twekkel/htpdate |
| 最后更新 | 2026-05-06T23:49:07Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
htpdate 1.3.7-2+b2
HTTP based time synchronization tool
https://github.com/twekkel/htpdate
sudo apt install htpdatehtpdate
nix profile install nixpkgs#htpdatehtpdate 1.3.7-2build2
HTTP based time synchronization tool
https://github.com/twekkel/htpdate
sudo apt install htpdatehtpdate 2.0.0-r0
HTTP Time protocol
https://github.com/twekkel/htpdate
sudo apk add htpdatehtpdate-doc 2.0.0-r0
HTTP Time protocol (documentation)
https://github.com/twekkel/htpdate
sudo apk add htpdate-dochtpdate-openrc 2.0.0-r0
HTTP Time protocol (OpenRC init scripts)
https://github.com/twekkel/htpdate
sudo apk add htpdate-openrchtpdate
sudo port install htpdate来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.