반응형



참고 : http://webinformation.tistory.com/86



해당 오류는 패키지 dependency 에 대해 지우고 다시 설치하면 됩니다.


[root@localhost ~]# yum shell > remove [지워야 하는 패키지명] > install [다시 설치해야 하는 패키지명] > run



반응형
반응형

참고 : https://m.blog.naver.com/PostView.nhn?blogId=idrukawa&logNo=220870293694&proxyReferer=https:%2F%2Fwww.google.co.kr%2F


Yum update errno 14 http error 404: not found


yum 으로 update를 진행하다보면 해당 에러가 발생할 수 있는데 이런 경우에 아래의 경로에 모든 파일을 다른곳으로 이동하고
daum 의 repository 정보로 변경하여 진행하면 됩니다.

root]# cd /etc/yum.repos.d

root]# vi daum.repo


[base]

name=CentOS-$releasever - Base

baseurl=http://ftp.daum.net/centos/7/os/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7

 

[updates]

name=CentOS-$releasever - Updates

baseurl=http://ftp.daum.net/centos/7/updates/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7

 

[extras]

name=CentOS-$releasever - Extras

baseurl=http://ftp.daum.net/centos/7/extras/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7

 

[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://ftp.daum.net/centos/7/centosplus/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7


// repo clear 후 로딩

// base, centosplus, extras, updates 가 출력되면 정상

// 위 리스트가 출력되지 않으면 daum.repo 만 남겨놓고 다른 repo는 삭제해보길 바람.


root]# yum clean all

...

Cleaning repos: base centosplus extras updates

Cleaning up everything


root]# ]# yum repolist all

반응형
반응형



1. 설치된 내역 확인 

# rpm -qa | grep ssh

openssh-server-6.61p1-31.el7.x86_64

openssh-client-6.61p1-31.el7.x86_64



2. 설치가 안되어 있으면 yum install 이나 rpm 으로 설치 진행

# yum install openssh*



3. ssh 설정 파일 수정 (해당 부분 주석 해제)

# vi /etc/ssh/sshd_config

Port 22 



4. ssh 서비스 구동

# systemctl start sshd.service



5. 방화벽 22번 포트 오픈 및 재시작

# firewall-cmd --zone=public -add-port=22/tcp --permanent

# firewall-cmd --reload

# systemctl restart firewalld.service



6. 포트 오픈 내역 확인

# netstat -na | grep tcp | grep 22






반응형
반응형


yum 을 통해 외부망에서 repository를 설정할 때.



1. yum 캐쉬 정보 삭제.

# yum clean all 


This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
>> 관련 내용 무시



2. EPEL repository 설정

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm



rpm -ivh epel-release-latest-7.noarch.rpm 

> 경고 무시

> /etc/yum.repo.d 에 아래 내역들 추가 되었는지 확인

>> epel-testing.repo  epel.repo



3. REMI repository 설정

wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


# rpm -Uvh remi-release-7.rpm 

/etc/yum.repo.d 

>> remi-php70.repo   remi-php71.repo  remi-safe.repo      remi.repo (파일 내역은 리눅스 버전에 따라 차이가 있는 것 같아 보임)



4. 필요한 패키지 yum install [패키지 명] 으로 설치 진행.





반응형

+ Recent posts