redhat 에서 yum 사용이 안된다. 상용 프로그램이니 돈내고 사용을 해야 지원을 해준다.
그렇지만 쌍둥이 centos 가 있다 이를 이용해서 yum을 사용하자
#cd /etc/yum.repos.d
#vi rhel-debuginfo.repo 수정후 안에 있는 데이터 삭제 아래내용으로 대체
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/5/os/$basearch/
gpgcheck=1
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.centos.org/centos/5/updates/$basearch/
gpgcheck=1
사용할 버전에 따라서
#rpm --import http://mirror.centos.org/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 64bit
#rpm --import http://mirror.centos.org/centos/5/os/i386/RPM-GPG-KEY-CentOS-5 32bit
이와 같이 버전6으로 할려면 경로로 가서 key 값만 가져오게 해주면 된다.
#yum list
해주면 yum을 정상적으로 사용 가능하다.
error
# yum update
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
http://ftp.daum.net/centos/5Server/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
위와 같이 에러가 발생하게 되면
url 주소를 최신버전 5.6 or 6.4 이렇게 절대 값을 입력해주면 된다.
baseurl=http://mirror.centos.org/centos/5.6/os/$basearch/
Error: database disk image is malformed
위와 같이 에러가 발생하면
#yum clean all
해주면 된다.
'Linux' 카테고리의 다른 글
emacs verilog mode 설치(Linux) (0) | 2012.12.27 |
---|---|
리눅스 mac address 변경 (0) | 2012.12.11 |
DNS 서버유지보수 (0) | 2012.11.15 |
openvas centos 설치 (0) | 2012.11.06 |
samba 설치 (0) | 2012.08.23 |