有没有办法使用
nix-env
列出所有已安装软件包的可用更新?我想查看我已安装的所有软件包,并显示该软件包是否已过期以及最新版本是什么。
在 Google 搜索中没有找到任何内容。没有来自
nix-env --help
的明显命令。
$ nix-env -q --installed --compare-versions
这将为每个包输出一行。如果包有 '<', then it is upgradable. For example, I have relic version 7.5.3 installed but I could upgrade to version 7.6.1:
relic-7.5.3 < 7.6.1