首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在使用本地安装的本地回购时运行“调试器安装内核”?

如何在使用本地安装的本地回购时运行“调试器安装内核”?
EN

Server Fault用户
提问于 2020-04-01 15:42:46
回答 1查看 1.7K关注 0票数 0

我想使用“崩溃”来查看内核内核。

崩溃/usr/lib/调试/lib/模块//vmlinux /var/ crash //vmcore

但是/usr/lib/debug/lib是空的,该目录(调试库)中填充了“调试器-安装内核”。

我有iso坐骑/mnt/光盘和yum识别回购。

yum repolist all

加载插件:langpack、产品id、禁用搜索的-repos、订阅管理器-此系统没有在权限服务器上注册。您可以使用订阅管理器注册。InstallMedia红帽企业Linux7.7启用: 5,229位repolist: 5,229人

但是,当我尝试以下操作时,它似乎希望/需要订阅管理器注册:

调试-安装内核

加载插件:langpack,产品id,订阅管理器这个系统没有注册到一个权限服务器.您可以使用订阅管理器注册。找不到主pkg的调试器:内核-3.10.0-1062.el7.x86_64没有可安装的调试器包

调试器安装内核-enablerepo=InstallMedia

加载插件:langpack,产品id,订阅管理器这个系统没有注册到一个权限服务器.您可以使用订阅管理器注册。找不到主pkg的调试器:内核-3.10.0-1062.el7.x86_64没有可安装的调试器包

如何从iso repo安装内核调试器包?

EN

回答 1

Server Fault用户

发布于 2020-04-01 17:28:45

如果您有iso映像或DVD,请尝试下面的步骤将其挂载并在本地系统中安装软件包。

mkdir -p /mnt/disc

挂载-o环disc 7.1.iso /mnt/disc

代码语言:javascript
复制
If you use DVD media , you can mount like below.

# mkdir -p  /mnt/disc
# mount /dev/sr0  /mnt/disc

Copy the media.repo file from the root of the mounted directory to /etc/yum.repos.d/ and set the permissions to 0644 or another similar permissions set:


# cp /mnt/disc/media.repo /etc/yum.repos.d/rhel7dvd.repo
# chmod 644 /etc/yum.repos.d/rhel7dvd.repo

Edit the new repo file, changing the gpgcheck=0 setting to 1 and adding the following 3 lines


vi /etc/yum.repos.d/rhel7dvd.repo
enabled=1
baseurl=file:///mnt/disc/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

In the end, the new repo file could look like the following


[InstallMedia]
name=DVD for Red Hat Enterprise Linux 7.1 Server
mediaid=1359576196.686790
metadata_expire=-1
gpgcheck=1
cost=500
enabled=1
baseurl=file:///mnt/disc/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Clear the cache and check whether you can get the packages list from the DVD repo

# yum clean all
# yum repolist enabled

It should look like the following if no other repository is enabled.
To avoid any corruption its recommend to disable any non-redhat repositories.

yum repolist启用

加载插件:产品-id,搜索禁用-再not,订阅管理器这个系统没有注册到Red订阅管理。您可以使用订阅管理器注册。回购id回购名称

InstallMedia红帽企业Linux7.7评论家: 5,229人

代码语言:javascript
复制
If no errors are returned, the following can be used to update:

# yum update
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1010432

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档