
コマンドを使用しようとするたびに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
このステップは役に立ちます。
yum clean all
&yum clean metadata
ファイルをチェックイン
/etc/yum.repos.d
し、すべてのリポジトリにすべてのファイルがないことを確認してくださいenabled = 0
(ファイルごとに複数のファイルがある可能性があります)。yum update
最後に、必要なパッケージを実行して検索できます。
答え2
CentOS / RHEL 7の場合、Repoforgeリポジトリでautosshを使用できなくなりました。したがって、ソースからビルドしてコンパイルする必要があります。実行する必要がある作業は次のとおりです。
$ sudo yum install wget gcc make
$ wget http://www.harding.motd.ca/autossh/autossh-1.4e.tgz
$ tar -xf autossh-1.4e.tgz
$ cd autossh-1.4e
$ ./configure
$ make
$ sudo make install
答え3
まず、EPEL(Enterprise Linux用の追加パッケージ)をインストールしてから、必要なパッケージ名をインストールします。
$ yum -y install epel-release
$ yum -y install autossh
答え4
/etc/yum.conf
また、1つ/etc/yum.repos.d/
以上のファイルを確認する必要があります。パッケージが除外されていないことを確認してください。まあ。
exclude=apache* httpd* mod_* mysql* MySQL* mariadb* da_* *ftp* exim* sendmail* php* bind-chroot* dovecot*