在 yum 回购列表中找不到包

Cannot find a package in yum repo list

我正在寻找 tomcat-native (Centos 6)

$sudo yum install tomcat-native
No package tomcat-native available.
Error: Nothing to do

如何更新 yum 存储库列表?

您的 Yum 配置为搜索默认的 yum 存储库,如果在该存储库中找不到包,您需要指定托管该包的适当存储库。您可以使用 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Managing_Yum_Repositories.html 指定 以下文章可能会帮助您安装 tomcat-native http://linuxfreaks.in/tomcat-native-library-apr-installation-on-centos/ http://blogoless.blogspot.com/2012/08/how-to-install-apache-tomcat-native.html