如何在 Fedora CoreOS 上安装 silversearcher-ag (ack-grep/ag)
问题
在 Fedora CoreOS 上尝试安装 silversearcher-ag(也称为 ag 或 ack-grep)时,你可能会遇到以下错误:
install_the_silver_searcher.sh
error: Packages not found: silversearcher-ag解决方案
在 Ubuntu 上,该包称为 silversearcher-ag,而在 Fedora CoreOS 上,它称为 the_silver_searcher。因此,要安装它,运行:
install_the_silver_searcher_fedora.sh
sudo rpm-ostree install the_silver_searcher之后,运行 systemctl reboot 或 rpm-ostree ex apply-live(有点危险,因为它可能也会应用其他更新)!之后,你应该能够像往常一样使用 ag。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow