CentOS 7 - yumインストールが機能しない

CentOS 7 - yumインストールが機能しない

コマンドを使用しようとするたびにyum install <packagename>エラーが発生します。

利用可能なパッケージはありません

例えば、

[root@cpanel1 etc]# yum install autossh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.t-2.net
 * extras: centos.t-2.net
 * updates: centos.t-2.net
No package autossh available.
Error: Nothing to do
[root@cpanel1 etc]# 

どのように機能させますか?

ベストアンサー1

このステップは役に立ちます。

  1. yum clean all&yum clean metadata

  2. ファイルをチェックイン/etc/yum.repos.dし、すべてのリポジトリにすべてのファイルがないことを確認してくださいenabled = 0(ファイルごとに複数のファイルがある可能性があります)。

  3. yum update最後に、必要なパッケージを実行して検索できます。

おすすめ記事