# Can't get package that provides /etc/yum.repos.d/CentOS-Base.repo

**URL:** <https://forums.rockylinux.org/t/cant-get-package-that-provides-etc-yum-repos-d-centos-base-repo/14786>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 24, 2024, 7:34pm UTC](https://forums.rockylinux.org/t/cant-get-package-that-provides-etc-yum-repos-d-centos-base-repo/14786 "2024-06-24T19:34:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felloz](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/felloz/32/4460_2.png) [@felloz](https://forums.rockylinux.org/u/felloz)\
**Post date:** [June 24, 2024, 7:34pm UTC](https://forums.rockylinux.org/t/cant-get-package-that-provides-etc-yum-repos-d-centos-base-repo/14786/1 "2024-06-24T19:34:05Z")

</div>

Im getting this error while im trying to migrate Centos 8 Stream to RockyLinux

```auto
[root@domain migrate2rocky]# ./migrate2rocky.sh -r
migrate2rocky - Begin logging at Mon 24 Jun 2024 02:51:09 PM -04.

Removing dnf cache
Preparing to migrate CentOS Stream 8 to Rocky Linux 8.

Determining repository names for CentOS Stream 8.Importing GPG key 0x210976F2:
 Userid : "Package Manager (Package Signing Key) <packages@pgadmin.org>"
 Fingerprint: E869 7E2E EF76 C02D 3A63 3277 8881 B2A8 2109 76F2
 From : /etc/pki/rpm-gpg/PGADMIN_PKG_KEY
.....

Found the following repositories which map from CentOS Stream 8 to Rocky Linux 8:
CentOS Stream 8 Rocky Linux 8
AppStream appstream
BaseOS baseos
extras extras

Getting system package names for CentOS Stream 8.^[[A^[[B.......Error: No Matches found

Can't get package that provides /etc/yum.repos.d/CentOS-Base.repo.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

 A log of this installation can be found at /var/log/migrate2rocky.log

```

My repo file:

```auto
# 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 Stream $releasever - BaseOS
baseurl=https://vault.centos.org/centos/8/BaseOS/x86_64/os/
#mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://vault.centos.org/$contentdir/8-stream/BaseOS/$basearch/os/
#baseurl=http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[AppStream]
name=CentOS Stream $releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=AppStream&infra=$infra
#mirrorlist=http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/repodata/i
#baseurl=http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/
baseurl=https://vault.centos.org/centos/8/AppStream/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[extras]
name=CentOS Stream $releasever - Extras
baseurl=https://vault.centos.org/centos/8/extras/x86_64/os/
#mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://vault.centos.org/$contentdir/8-stream/extras/$basearch/os/
#baseurl=http://mirror.centos.org/centos/8-stream/extras/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#[PowerTools]
#name=CentOS Stream $releasever - PowerTools
#mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://vault.centos.org/$contentdir/8-stream/PowerTools/$basearch/os/
#gpgcheck=1
#enabled=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#[centosplus]
#name=CentOS Stream $releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://vault.centos.org/$contentdir/8-stream/centosplus/$basearch/os/
#baseurl=http://mirror.centos.org/centos/8-stream/PowerTools/x86_64/os/
#baseurl=http://mirror.centos.org/centos/8-stream/centosplus/x86_64/os/
#gpgcheck=1
#enabled=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

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

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [August 23, 2024, 7:35pm UTC](https://forums.rockylinux.org/t/cant-get-package-that-provides-etc-yum-repos-d-centos-base-repo/14786/2 "2024-08-23T19:35:05Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
