Skip to content

Instantly share code, notes, and snippets.

@alwaysR9
Last active September 29, 2023 00:35
Show Gist options
  • Save alwaysR9/bdb4b80a1eff6678c407cb94edd9b031 to your computer and use it in GitHub Desktop.
Save alwaysR9/bdb4b80a1eff6678c407cb94edd9b031 to your computer and use it in GitHub Desktop.

方法一:yum安装

创建repo

>> vi /etc/yum.repos.d/CentOS-Debuginfo.repo
>> 输入以下内容:
# CentOS-Debug.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.
#

# All debug packages from all the various CentOS-7 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#

[base-debuginfo]
name=CentOS-7 - Debuginfo
baseurl=http://debuginfo.centos.org/7/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-7
enabled=1

确认kernel版本

>> uname -r
<< 3.10.0-327.el7

安装kernel-debuginfo

>> yum install kernel-debuginfo-3.10.0-327.el7.x86_64

方法二:下载rpm,手动安装

登录:http://debuginfo.centos.org/7/x86_64/
下载:kernel-debuginfo-common-x86_64-3.10.0-327.el7.x86_64.rpm
     kernel-debuginfo-3.10.0-327.el7.x86_64.rpm
安装:先安装kernel-debuginfo-common,再安装kernel-debuginfo
@SmartKeyerror
Copy link

it's helpful, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment