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마지막으로 필요한 패키지를 실행하고 검색할 수 있습니다 .

답변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또한 하나 /etc/yum.repos.d/이상의 파일을 확인해야 합니다.패키지가 제외되지 않았는지 확인하십시오.음.

exclude=apache* httpd* mod_* mysql* MySQL* mariadb* da_* *ftp* exim* sendmail* php* bind-chroot* dovecot*

관련 정보