사용자 도구

사이트 도구


wiki:os:linux:yum

YUM

  • description : YUM 관련 다양한 주제 논의
  • author : 주레피
  • email : dhan@repia.com
  • lastupdate : 2022-05-18

Yum downloadonly

설치는 하지 않고 패키지 다운로드만 (관련 의존성을 포함하여)

// 기본 사용법
[root@centos7 ~]# yum install 패키지명 --downloadonly
// 1. 지정한 폴더에 저장
[root@centos7 ~]# yum install 패키지명 -y --downloadonly --downloaddir=경로
// 2. 현재 폴더에 저장
[root@centos7 ~]# yum install 패키지명 -y --downloadonly --downloaddir=.

Troubleshooting

ContOS7 업데이트 실패시 복구 시나리오

  • /etc/yum.repos.d/ 내의 모든 파일을 백업하거나 삭제
  • /etc/yum.repos.d/CentOS-Daum.repo 생성(아래 내용)
  • yum 실행
$> yum clean all
$> yum -y install telnet

CentOS-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

Ref

/var/services/web/dokuwiki/data/pages/wiki/os/linux/yum.txt · 마지막으로 수정됨: 2023/01/13 18:44 (바깥 편집)