0.10.3 - 2026-10-262026-10-26
本次更新为 zypper 后端补上了仓库支持。flatpak 仓库的 url 选项改为必填,解析分组文件时就直接报错,不再等到安装仓库那一步才发现配置有问题。另外修复了 arch 后端下 metapac clean 清不掉「仅作为可选依赖被需要」的包——现在获取孤儿包列表时会多带一个 --unrequired 标记,这类包也能一并移除。
0.10.2 - 2026-08-312026-09-01
AUR 上的 metapac 包已恢复同步,0.10.1 与本次 0.10.2 均已更新到位。
本次更新为 cargo 后端新增了单包粒度的 binstall 配置项。此前若在全局 config.toml 里统一开启 binstall=true,遇到 binstall 尚不支持的 git 包只能整体关闭,如今可针对该包单独覆盖设置,避开这一限制(修复见 #236)。
0.10.1 - 2026-08-092026-08-10
metapac 更新到新版本,brew 后端新增仓库支持:新增仓库会自动执行 brew tap 和 brew trust --tap,删除时反向操作(#235)。另一处修复针对 dnf、flatpak、apt 后端——此前仓库会在软件包卸载前就被移除,导致卸载失败,现在改为先卸包再删仓库(#234)。
另外,由于 AUR 目前暂停了所有 git 推送,AUR 上的 metapac 包暂时停留在 v0.10.0,需要新版的用户可先用 cargo install metapac 安装。
0.10.0 - 2026-06-272026-06-28
本次更新带来两项新功能:新增 metapac refresh 子命令,一条指令即可刷新各类后端的本地包元数据,相当于自动执行 apt-get update、brew update、dnf makecache 这类操作;同时加入基于 nix profile 的 nix 后端,支持 installable、priority 等包选项,以及 profile、impure、acceptflakeconfig 等后端配置。修复方面,arch 后端下第一次执行 metapac clean 被取消、再执行一次时包没有被真正移除的问题已解决。
0.9.4 - 2026-04-052026-04-05
修复了 brew 后端中已失效的 quarantine 选项——该参数此前仍出现在配置里,但上游早已不再支持,可能导致安装过程报错或行为异常。现在配置文件中若残留这些选项不会再造成问题。
0.9.3 - 2026-01-282026-01-28
修复了 beforeinstall 和 afterinstall 钩子的一个问题:此前无论软件包是否已安装,每次同步都会执行这两个钩子。现在只有真正执行安装时才会触发,避免了重复运行带来的多余开销和副作用。
0.9.2 - 2026-01-262026-01-27
修复了一个安装脚本的小问题:flatpak remote-add 与 flatpak remote-delete 命令中误加的 --assumeyes 选项并非 flatpak 支持的参数,会导致命令执行报错。本次更新已将该选项移除,使用 flatpak 源的用户重新运行脚本即可正常完成仓库的添加与删除。
0.9.1 - 2026-01-262026-01-27
本次修复了解析 flatpak 远程仓库时可能触发 panic 的问题,同时移除了所有 flatpak 命令中的 sudo——flatpak 自带权限提升机制,无需外部授权。相关问题在 #207 中报告,修复见 #208。
0.9.0 - 2026-01-252026-01-25
Release Noes
‼️ This is a extremely breaking release. All users will need to fix their
group files to move to the new format. See the migration guide below. ‼️
This is big release, adding the (hopefully) final ingredient in a
declarative meta package manager, repo management. Because what good is
being able to declare a list of packages if the names of those packages are
ambiguous due to coming from a bunch of different unmentioned repos.
This release fixes that by introducing a second declaratively managed
entity, a repo. Lots of package managers support multiple and even
arbitrary repos, but for this release the driving backend was dnf and
specifically issue #176. Thanks to @komapro too for making the case so well
too. The flatpak backend also now supports repos.
Hopefully, in future releases metapac will support repo management for
more backends.
And just as luck would have it, toml v1.1.0 was released only a month
ago <https://github.com/toml-lang/toml/issues/928> which added support for
newlines and trailing commas in inline tables which makes group files a lot
more flexible.
Migration Guide
The array of packages gets moved under the packages property of the
backend and the package property of long-form packages is renamed to
name so it can be shared with the new repos.
Old group file format
``toml
arch = [
"package1",
{ package = "package2" },
]
`
New group file format
`toml
arch = {
packages = [
"package1",
{ name = "package2" },
]
}
`
Added
- metapac now supports .toml files using toml
v1.1.0 (#188).
- metapac now has a new completions subcommand for generating shell
completions for the following shells: Bash, Elvish, Fish, PowerShell, Zsh, NuShell.
These are now also automatically installed with the metapac AUR
package. (#205)
Changed
- ‼️ Breaking Change ‼️ The group file format has changed to allow both
repos and packages to be added for the same backend (discussion in #176,
implemented in #188).
- ❗ Breaking Change ❗ Invalid properties at the top level of a group file
are now no longer a soft warning but a hard error (#188).
- ❗ Breaking Change ❗ The flatpak has been completely overhauled and a
new installation:name format is used for package/repo names since each
installation is independent. The flatpak.systemwide config has been
removed in favor of the more explicit installation on each package (#200
and #201)
Removed
- ‼️ Breaking Change ‼️ The metapac add, metapac remove, metapac
install, and metapac uninstall` subcommands have been removed (#198).
This is up for discussion though, #197 has been opened for this
purpose and contains further reasoning.
0.8.0 - 2026-01-112026-01-12
metapac 本次更新包含两项破坏性变更与几处修复。
先是简写全砍了:子命令和选项的单字母别名一律移除,metapac s 之类不再有效,必须写全 metapac sync;选项同理,-n hostname 要改成 --hostname hostname。作者的理由很直白——子命令越来越多,记不清哪个字母对应哪个命令,不如全部显式书写。
dnf 后端也做了大幅简化,删掉了 repo 和 user 两个本来就讲不通的包选项,如今行为与其他后端基本一致。
修复方面,组文件的解析和校验被移到了真正需要它的子命令里,metapac upgrade-all、metapac backends 这类用不到组文件的命令因此快了很多。另外解决了 Windows 上无法运行 .ps1、.cmd 等非 .exe 可执行文件的问题,办法是把命令统一包进 cmd /C 执行。