# macOS 27.0 中神秘的 /pkg 目录是什么？

Original title: What the heck is /pkg?

> Hacker News story 50143154 · language: zh · submitted 2026-10-18
> Web version: https://zeli.app/zh/story/50143154
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 51 · by [GavinAnderegg](<https://news.ycombinator.com/user?id=GavinAnderegg>) · 💬 15
[original](<https://anderegg.ca/2026/10/18/what-the-heck-is-pkg>) · [HN discussion](<https://news.ycombinator.com/item?id=50143154>)

## Summary

最近在排查 PATH 问题时，我意外发现了 macOS 27.0 中新增的 /pkg/env/global/bin 条目，起初以为系统出了大错。深入调查后发现，这是 Apple 在 macOS 26.4 引入、27.0 正式加入根目录的新结构，但官方至今未说明其用途。该目录包含 env、etc、inv 和 var 四个子目录，结合文件名中的 'pmk' 猜测，可能与 Apple 正在构建的第一方包管理系统有关。尽管 Apple 已接管 Swift Package Index，但 /pkg 的具体功能仍是个谜。希望未来能揭开它的面纱，至少现在，别让这个陌生的路径吓到你。

## Key quote

> 奇怪的是，据我所知，似乎没人知道这个新目录到底是用来做什么的！

## HN discussion (15 comments)

### [CharlesW](<https://news.ycombinator.com/item?id=50147453>)

> \> “事实证明，这是 macOS 27.0 的一部分……”
>
> 实际上，这是 macOS 26.4 的一部分：https://eclecticlight.co/2026/09/19/macos-tahoe-26-4-changed... “直到并包括 macOS Tahoe 26.3.1 在内，这些目录的布局六年多来都没有变化，但在 26.4 和 Golden Gate 中发生了变化，新增了一个名为 pkg 的 firmlinked 目录。”
>
> Apple 不会轻率地做这种事。在 WWDC 会议中搜索并没有提到 /pkg，但我敢打赌这与这个有关：https://developer.apple.com/videos/play/wwdc2026/206/?time=6...

### [oefrha](<https://news.ycombinator.com/item?id=50147115>)

> \> 同样不清楚 /etc/paths.d/10-pmk-global 中的“pmk”指的是什么。
>
> 如果按照 Apple 最近的命名惯例，也许是 package management kit。

### [torben-friis](<https://news.ycombinator.com/item?id=50147241>)

> 所以他们是不是打算推出自己的 brew？还是说他们期望的是完全不同的东西？

---

## Cite

- Page: https://zeli.app/zh/story/50143154
- Date: 2026-10-18
- Source: anderegg.ca (https://anderegg.ca/2026/10/18/what-the-heck-is-pkg)
- Hacker News: https://news.ycombinator.com/item?id=50143154

## Other languages

- en: https://zeli.app/story/50143154 · markdown: https://zeli.app/story/50143154.md
- ja: https://zeli.app/ja/story/50143154 · markdown: https://zeli.app/ja/story/50143154.md
- ko: https://zeli.app/ko/story/50143154 · markdown: https://zeli.app/ko/story/50143154.md
- de: https://zeli.app/de/story/50143154 · markdown: https://zeli.app/de/story/50143154.md
- es: https://zeli.app/es/story/50143154 · markdown: https://zeli.app/es/story/50143154.md
- ru: https://zeli.app/ru/story/50143154 · markdown: https://zeli.app/ru/story/50143154.md
