On 12/9/20 11:29 AM, Pete Biggs wrote:> On Wed, 2020-12-09 at 11:00 -0600, Johnny Hughes wrote:
>>
>> Put this line :
>>
>> dnf swap centos-{linux,stream}-repos
>>
>> after
>>
>> dnf install centos-release-stream
>>
>
> Is there away to recover the system I tried it on - if I run that
> command now I get
>
> No match for argument: centos-stream-repos
> Error: Unable to find a match: centos-stream-repos
>
> If I try to install centos-release-stream I get
>
> Package centos-stream-release-8.4-1.el8.noarch is already installed.
>
> I can't remove it because it would result in removing a protected
> package.
>
> Oh well, a wipe and re-install tomorrow probably.
>
> P.
>
sure .. you can manually add the one repo required to manually do the
swap command ..
Or maybe just install this package and then remove the other one:
you want:
http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-2.el8.noarch.rpm
installed first
Then remove centos-repos
Or you could manually create a CentOS-Stream-BaseOS.repo (you could even
name it test.repo and remove it later once switched) this will work:
[baseos]
name=CentOS Stream $releasever - BaseOS
mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$stream/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
in /etc/yum.repos.d/<somename>.repo
then once the distro-sync command works, remove <somaname.repo>