我更新了内核,为什么dpkg --get-selections | grep linux不显示?

内核编译和嵌入式产品的设计与开发
回复
darren_wang
帖子: 3
注册时间: 2014-09-06 19:10
系统: Ubuntu 14.04 Kylin

我更新了内核,为什么dpkg --get-selections | grep linux不显示?

#1

帖子 darren_wang » 2014-09-07 1:40

RT,
我安装了3.16.1的内核,开机引导能够在原有内核和新内核之间选择并正常运行,但是我使用
$ dpkg --get-selections | grep linux
查看时只有原内核的信息,完全看不到3.16.1的任何内容,请教个问大神这是为什么。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 我更新了内核,为什么dpkg --get-selections | grep linux不显示?

#2

帖子 poloshiao » 2014-09-07 7:23

試試
sudo dpkg -l | grep linux-image

參閱
http://manpages.ubuntu.com/manpages/tru ... pkg.1.html
It should not be used by package maintainers wishing to understand how dpkg will install their packages. The descriptions of what dpkg does when installing and removing packages are particularly inadequate.
darren_wang
帖子: 3
注册时间: 2014-09-06 19:10
系统: Ubuntu 14.04 Kylin

Re: 我更新了内核,为什么dpkg --get-selections | grep linux不显示?

#3

帖子 darren_wang » 2014-09-11 0:17

$ sudo dpkg -l | grep linux-image
结果如下:
ii linux-image-3.13.0-35-generic 3.13.0-35.62 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-35-generic 3.13.0-35.62 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-generic 3.13.0.35.42 amd64 Generic Linux kernel image
是不是说明我的3.16没有安装成功?
头像
astolia
论坛版主
帖子: 6454
注册时间: 2008-09-18 13:11

Re: 我更新了内核,为什么dpkg --get-selections | grep linux不显示?

#4

帖子 astolia » 2014-09-11 11:01

你是用什么方式安装的?dpkg只会记录通过deb包安装的软件
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 我更新了内核,为什么dpkg --get-selections | grep linux不显示?

#5

帖子 poloshiao » 2014-09-11 11:25

是不是说明我的3.16没有安装成功?
再安裝一次看看
如果還是沒有
把你安裝的方法 提供一下

補充
dpkg -l
列出 /var/lib/dpkg/status 中 所有套件名單 (除了已經標示未安裝以外)

參閱
1. https://wiki.debian.org/ListInstalledPackages
Show status of all packages on the system
To check the status of all packages on your system:
dpkg -l | more
2. http://manpages.ubuntu.com/manpages/tru ... ery.1.html
-l, --list [package-name-pattern...]
List packages matching given pattern. If no package-name-pattern is given, list all packages in /var/lib/dpkg/status, excluding the ones marked as not-installed (i.e. those which have been previously purged).
darren_wang
帖子: 3
注册时间: 2014-09-06 19:10
系统: Ubuntu 14.04 Kylin

Re: 我更新了内核,为什么dpkg --get-selections | grep linux不显示?

#6

帖子 darren_wang » 2014-09-21 0:04

astolia 写了:你是用什么方式安装的?dpkg只会记录通过deb包安装的软件
不是唉,我是直接从kernel.org下载内核源码后配置编译然后安装的,是不是这样的话旧不会在dpkg下显示?
回复