Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

DKMSインストール時に kernel-devel が見つからない Requires: kernel-devel

More than 5 years have passed since last update.

DKMSインストール時に kernel-devel が見つからない

環境 CentOS release 6.7 (Final)

$sudo yum install dkms --enablerepo=epel

Error: Package: dkms-2.2.0.3-30.git.7c3e7c5.el6.noarch (epel)
Requires: kernel-devel

$sudo yum install kernel-devel
No package kernel-devel available.

/etc/yum.conf の exclude=kernel* を消すという記事はあちちでみかけましたが,そもそも yum.confにその行がない。

解決方法

/etc/yum.repos.d/CentOS-Vault.repo
[C6.5-base]
enabled=1
[C6.5-updates]
enabled=1

としたら
$sudo yum install kernel-devel
で出てきました。

追記
/etc/yum.repos.d/CentOS-Vault.repoを書き直すのは面倒なので、下記の方が良いです。

$sudo yum -y install --enablerepo=C6.5-base,C6.5-updates kernel-devel

CentOS-6.7-x86_64-minimal.iso 辺りを使ってinstall、yum update後
この1行をやっておけば他の物をinstallする時にも困らないです。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away