Installing Nvidia drivers on CentOS 8

Issues related to hardware problems
User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing Nvidia drivers on CentOS 8

Post by TrevorH » 2020/11/17 11:04:08

Check to see what files you have left in /etc/yum.repos.d that are not owned by any installed package: rpm -qf /etc/yum.repos.d/*.repo

I suspect you've removed the package but it's left .repo files behind that point to Stream repos.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

secetspaces
Posts: 10
Joined: 2020/11/13 12:15:09

Re: Installing Nvidia drivers on CentOS 8

Post by secetspaces » 2020/11/17 11:06:52

rpm -qf /etc/yum.repos.d/*.repo
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
centos-stream-repos-8-1.el8.noarch
elrepo-release-8.2-1.el8.elrepo.noarch
epel-release-8-9.el8.noarch
epel-release-8-9.el8.noarch
epel-release-8-9.el8.noarch
epel-release-8-9.el8.noarch
epel-release-8-9.el8.noarch
file /etc/yum.repos.d/scootersoftware.repo is not owned by any package

Should I remove anything stream* ?

ls
CentOS-Stream-AppStream.repo
CentOS-Stream-BaseOS.repo
CentOS-Stream-Debuginfo.repo
CentOS-Stream-Extras.repo
CentOS-Stream-HighAvailability.repo
CentOS-Stream-Media.repo
CentOS-Stream-Plus.repo
CentOS-Stream-PowerTools.repo
CentOS-Stream-RealTime.repo
elrepo.repo
epel-modular.repo
epel-playground.repo
epel.repo
epel-testing-modular.repo
epel-testing.repo
scootersoftware.repo

User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing Nvidia drivers on CentOS 8

Post by TrevorH » 2020/11/17 11:27:32

Right, so there is a centos-stream-repos package that also need to be replaced with the equivalent centos-linux-repos package.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

secetspaces
Posts: 10
Joined: 2020/11/13 12:15:09

Re: Installing Nvidia drivers on CentOS 8

Post by secetspaces » 2020/11/17 11:34:49

Thanks for your help so far!
How can I go about this?

dnf shell:
> remove centos-stream-repos
> run

Problem: The operation would result in removing the following protected packages: setup
Nothing to do.

dnf info centos-linux-repos
Error: No matching Packages to list
Last edited by secetspaces on 2020/11/17 11:52:36, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing Nvidia drivers on CentOS 8

Post by TrevorH » 2020/11/17 11:52:22

You need to replace it with the centos-linux-repos package in the same way you did with the other one.

Since you are out in uncharted territory here, please make sure that this is not a mission critical system and that you have all your data backed up before you continue.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

secetspaces
Posts: 10
Joined: 2020/11/13 12:15:09

Re: Installing Nvidia drivers on CentOS 8

Post by secetspaces » 2020/11/17 12:04:56

Ok.

sudo dnf shell:
> remove centos-stream-repos
> install ./centos-repos-8.2-2.2004.0.2.el8.x86_64.rpm
Error: Cannot add local packages, because transaction job already exists
> run

Problem: The operation would result in removing the following protected packages: setup
Nothing to do.
Complete!

User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing Nvidia drivers on CentOS 8

Post by TrevorH » 2020/11/17 12:33:25

Did you previously kill dnf in some way that it was interrupted? Are there any files in /tmp that look like they might be transactions?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

secetspaces
Posts: 10
Joined: 2020/11/13 12:15:09

Re: Installing Nvidia drivers on CentOS 8

Post by secetspaces » 2020/11/17 12:51:25

Now that you say it: I did Ctrl+C out of dnf shell before I knew how to exit properly.
I think there weren't really any tasks pending and I can't seem to find something interesting in /tmp.

The above mentioned error persists after reboot.
(Error: Cannot add local packages, because transaction job already exists)

User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing Nvidia drivers on CentOS 8

Post by TrevorH » 2020/11/17 16:54:28

I have no idea how dnf tracks its transactions. Yum used to create a file in /tmp called something with "TX" or "tx" in its name. If not there then perhaps /var/tmp? Or maybe /var/cache/dnf?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - Hardware Support”