Shell Script Error : No package ~ available

parrineau·2021년 9월 3일
0

분명히 존재하는 패키지인데 설치가 되지 않는 경우가 있습니다.

이는, /etc/yum.repos.d에 저장된 centos-base.repo 파일에 문제가 있을 경우가 큽니다.

아래 내용은 CentOS 버전 별 CentOS-Base.repo 파일의 기본 설정 내용입니다. 임의로 수정 후 다시 복구할 때 사용할 수 있습니다.


CentOS 8 - CentOS-Base.repo

Copy All Code

#CentOS-Base.repo

#The mirror system uses the connecting IP address of the client and the
#update status of each mirror to pick mirrors that are updated to and
#geographically close to the client. You should use this for CentOS updates
#unless you are manually picking other mirrors.

#If the mirrorlist= does not work for you, as a fall back you can try the
#remarked out baseurl= line instead.

[BaseOS]
name=CentOS-releaseverBasemirrorlist=http://mirrorlist.centos.org/?release=releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=BaseOS&infra=infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial


CentOS 7 - CentOS-Base.repo

Copy All Code

#CentOS-Base.repo

#The mirror system uses the connecting IP address of the client and the
#update status of each mirror to pick mirrors that are updated to and
#geographically close to the client. You should use this for CentOS updates
#unless you are manually picking other mirrors.

#If the mirrorlist= does not work for you, as a fall back you can try the
#remarked out baseurl= line instead.
[base]
name=CentOS-releaseverBasemirrorlist=http://mirrorlist.centos.org/?release=releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=os&infra=infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates

[updates]
name=CentOS-releaseverUpdatesmirrorlist=http://mirrorlist.centos.org/?release=releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=updates&infra=infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-releaseverExtrasmirrorlist=http://mirrorlist.centos.org/?release=releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=extras&infra=infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-releaseverPlusmirrorlist=http://mirrorlist.centos.org/?release=releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=centosplus&infra=infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7


CentOS 6 - CentOS-Base.repo

Copy All Code

#CentOS-Base.repo

#The mirror system uses the connecting IP address of the client and the
#update status of each mirror to pick mirrors that are updated to and
#geographically close to the client. You should use this for CentOS updates
#unless you are manually picking other mirrors.

#If the mirrorlist= does not work for you, as a fall back you can try the
#remarked out baseurl= line instead.
[base]
name=CentOS-releaseverBasemirrorlist=http://mirrorlist.centos.org/?release=releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=os #baseurl=http://mirror.centos.org/centos/releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-releaseverUpdatesmirrorlist=http://mirrorlist.centos.org/?release=releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=updates #baseurl=http://mirror.centos.org/centos/releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-releaseverExtrasmirrorlist=http://mirrorlist.centos.org/?release=releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=extras #baseurl=http://mirror.centos.org/centos/releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-releaseverPlusmirrorlist=http://mirrorlist.centos.org/?release=releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-releaseverContribmirrorlist=http://mirrorlist.centos.org/?release=releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


CentOS 5 - CentOS-Base.repo

Copy All Code

#CentOS-Base.repo

#The mirror system uses the connecting IP address of the client and the
#update status of each mirror to pick mirrors that are updated to and
#geographically close to the client. You should use this for CentOS updates
#unless you are manually picking other mirrors.

#If the mirrorlist= does not work for you, as a fall back you can try the
#remarked out baseurl= line instead.
[base]
name=CentOS-releaseverBasemirrorlist=http://mirrorlist.centos.org/?release=releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=os #baseurl=http://mirror.centos.org/centos/releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#released updates
[updates]
name=CentOS-releaseverUpdatesmirrorlist=http://mirrorlist.centos.org/?release=releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=updates #baseurl=http://mirror.centos.org/centos/releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#packages used/produced in the build but not released
[addons]
name=CentOS-releaseverAddonsmirrorlist=http://mirrorlist.centos.org/?release=releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=addons #baseurl=http://mirror.centos.org/centos/releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-releaseverExtrasmirrorlist=http://mirrorlist.centos.org/?release=releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=extras #baseurl=http://mirror.centos.org/centos/releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-releaseverPlusmirrorlist=http://mirrorlist.centos.org/?release=releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch=basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

profile
방황하는 귀여운 개발자

0개의 댓글