[SOLVED] Things to do with a fresh installation of CentOS 7.
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now, I want to do the step below, but I got unsuccessful result.
6. sudo yum --disablerepo="*" --enablerepo="elrepo-kernel" install kernel-ml*
Code:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* elrepo-kernel: elrepo.org
Resolving Dependencies
--> Running transaction check
---> Package kernel-ml.x86_64 0:4.19.2-1.el7.elrepo will be installed
---> Package kernel-ml-devel.x86_64 0:4.19.2-1.el7.elrepo will be installed
---> Package kernel-ml-doc.noarch 0:4.19.2-1.el7.elrepo will be installed
---> Package kernel-ml-headers.x86_64 0:4.19.2-1.el7.elrepo will be installed
---> Package kernel-ml-tools.x86_64 0:4.19.2-1.el7.elrepo will be installed
---> Package kernel-ml-tools-libs.x86_64 0:4.19.2-1.el7.elrepo will be installed
---> Package kernel-ml-tools-libs-devel.x86_64 0:4.19.2-1.el7.elrepo will be installed
--> Processing Conflict: kernel-ml-tools-4.19.2-1.el7.elrepo.x86_64 conflicts kernel-tools < 4.19.2-1.el7.elrepo
--> Processing Conflict: kernel-ml-headers-4.19.2-1.el7.elrepo.x86_64 conflicts kernel-headers < 4.19.2-1.el7.elrepo
--> Processing Conflict: kernel-ml-tools-libs-4.19.2-1.el7.elrepo.x86_64 conflicts kernel-tools-libs < 4.19.2-1.el7.elrepo
--> Finished Dependency Resolution
Error: kernel-ml-tools-libs conflicts with kernel-tools-libs-3.10.0-862.14.4.el7.x86_64
Error: kernel-ml-tools conflicts with kernel-tools-3.10.0-862.14.4.el7.x86_64
Error: kernel-ml-headers conflicts with kernel-headers-3.10.0-862.14.4.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
However, when I did this, I got successful result.
7. sudo yum --disablerepo="*" --enablerepo="elrepo-kernel" install kernel-ml
Code:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* elrepo-kernel: muug.ca
Resolving Dependencies
--> Running transaction check
---> Package kernel-ml.x86_64 0:4.19.2-1.el7.elrepo will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================
Package Arch Version Repository Size
========================================================================================================
Installing:
kernel-ml x86_64 4.19.2-1.el7.elrepo elrepo-kernel 46 M
Transaction Summary
========================================================================================================
Install 1 Package
Total download size: 46 M
Installed size: 205 M
Is this ok [y/d/N]: y
Downloading packages:
kernel-ml-4.19.2-1.el7.elrepo.x86_64.rpm | 46 MB 00:01:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : kernel-ml-4.19.2-1.el7.elrepo.x86_64 1/1
Verifying : kernel-ml-4.19.2-1.el7.elrepo.x86_64 1/1
Installed:
kernel-ml.x86_64 0:4.19.2-1.el7.elrepo
Complete!
8. reboot now
My questions to you are
1. If I would like to install Nvidia driver (kmodnvidia)from elrepo next, I would need all these below correct?
kernel-ml.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-devel.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-doc.noarch 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-headers.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-tools.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-tools-libs.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-tools-libs-devel.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
2. How should I solve the conflict between kernel from "elrepo-kernel" and "el"?
I must agree with those who said "yum_priorities"
You should always assume any non "base" repo set will sooner or later cause grief.
Install yum_priorities immediately after a simple base install and then use it for every new set of repos you add and preferably just stick to the better known ones eg epel, elrepo & others if you must.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by zethan
...
My questions to you are
1. If I would like to install Nvidia driver (kmodnvidia)from elrepo next, I would need all these below correct?
kernel-ml.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-devel.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-doc.noarch 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-headers.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-tools.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-tools-libs.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
kernel-ml-tools-libs-devel.x86_64 4.19.2-1.el7.elrepo elrepo-kernel
2. How should I solve the conflict between kernel from "elrepo-kernel" and "el"?
Thank you.
For your first question, the kernel-ml-headers and devel packages are only needed if you plan on building kernel modules and/or you are using the .run script/installer from NVIDIA directly. So unless you are going to use the .run script/installer, you only need the kernel-ml package itself, if you are going to use the kernel-ml line.
For your second question; you'll need to use rpm directly to remove the development packages for kernel 3.x series and then you should be able to install the kernel-ml packages it's complaining about, that it can't install currently. Run the following commands as root:
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* elrepo: repos.ord.lax-noc.com
Resolving Dependencies
--> Running transaction check
---> Package kmod-nvidia-304xx.x86_64 0:304.135-6.el7_6.elrepo will be installed
--> Processing Dependency: nvidia-x11-drv-304xx = 304.135 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(i2c_del_adapter) = 0x28a636e9 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(i2c_add_adapter) = 0xa6f8da46 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(drm_legacy_pci_init) = 0xc30e01c8 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(drm_legacy_pci_exit) = 0x0a05a9f3 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Running transaction check
---> Package kmod-nvidia-304xx.x86_64 0:304.135-6.el7_6.elrepo will be installed
--> Processing Dependency: kernel(i2c_del_adapter) = 0x28a636e9 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(i2c_add_adapter) = 0xa6f8da46 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(drm_legacy_pci_init) = 0xc30e01c8 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
--> Processing Dependency: kernel(drm_legacy_pci_exit) = 0x0a05a9f3 for package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64
---> Package nvidia-x11-drv-304xx.x86_64 0:304.135-1.el7.elrepo will be installed
--> Finished Dependency Resolution
Error: Package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64 (elrepo)
Requires: kernel(i2c_add_adapter) = 0xa6f8da46
Installed: kernel-3.10.0-862.el7.x86_64 (@anaconda)
kernel(i2c_add_adapter) = 0xe0559938
Installed: kernel-3.10.0-862.14.4.el7.x86_64 (@updates)
kernel(i2c_add_adapter) = 0xe0559938
Installed: kernel-ml-4.19.2-1.el7.elrepo.x86_64 (@elrepo-kernel)
kernel(i2c_add_adapter) = 0x0f385b26
Error: Package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64 (elrepo)
Requires: kernel(drm_legacy_pci_init) = 0xc30e01c8
Installed: kernel-3.10.0-862.el7.x86_64 (@anaconda)
kernel(drm_legacy_pci_init) = 0xbf21db93
Installed: kernel-3.10.0-862.14.4.el7.x86_64 (@updates)
kernel(drm_legacy_pci_init) = 0xbf21db93
Installed: kernel-ml-4.19.2-1.el7.elrepo.x86_64 (@elrepo-kernel)
kernel(drm_legacy_pci_init) = 0x63a198b2
Error: Package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64 (elrepo)
Requires: kernel(drm_legacy_pci_exit) = 0x0a05a9f3
Installed: kernel-3.10.0-862.el7.x86_64 (@anaconda)
kernel(drm_legacy_pci_exit) = 0x08c1a412
Installed: kernel-3.10.0-862.14.4.el7.x86_64 (@updates)
kernel(drm_legacy_pci_exit) = 0x08c1a412
Installed: kernel-ml-4.19.2-1.el7.elrepo.x86_64 (@elrepo-kernel)
kernel(drm_legacy_pci_exit) = 0xd034dc1d
Error: Package: kmod-nvidia-304xx-304.135-6.el7_6.elrepo.x86_64 (elrepo)
Requires: kernel(i2c_del_adapter) = 0x28a636e9
Installed: kernel-3.10.0-862.el7.x86_64 (@anaconda)
kernel(i2c_del_adapter) = 0x509cd9ad
Installed: kernel-3.10.0-862.14.4.el7.x86_64 (@updates)
kernel(i2c_del_adapter) = 0x509cd9ad
Installed: kernel-ml-4.19.2-1.el7.elrepo.x86_64 (@elrepo-kernel)
kernel(i2c_del_adapter) = 0x18922bc2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
My question to you now is below.
How do I install and use this "kmod-nvidia-304xx"? I know it is from "elrepo" repositories, but, from this yum --disablerepo="*" --enablerepo="elrepo" install kmod-nvidia-304xx command, it still conflicts/need some packages from @updates and @anaconda repositories.
A friend of mine said I probably need something like "rpm -e --nodeps kernel" at this point. The word "kernel", in this case, would mean kernel-3.10.0-862.el7.x86_64 (@anaconda) and kernel-3.10.0-862.14.4.el7.x86_64 (@updates) correct?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by zethan
...
Code:
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
1:compat-glibc-headers-2.12-4.el7.centos.x86_64 has missing requires of kernel-headers >= ('0', '2.2.1', None)
glibc-headers-2.17-222.el7.x86_64 has missing requires of kernel-headers >= ('0', '2.2.1', None)
The first message means exactly what it says, and it would be expected, given you did alter rpm's database outside of yum.
Quote:
However, there were some warning messages.
...
As I was suspecting; the kmod-nvidia packages at elrepo are built for the kernel 3.x series, not the kernel 4.x series which kernel-ml currently is.
So you either have to use the kernel shipped with CentOS, which is kernel 3.x, if you want to use the package from elrepo. Or, install the NVIDIA driver from the .run script/installer, if you want to use kernel-ml instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.