[UOS] 怎么卸载通过 sudo make install 安装的内核
Tofloor
poster avatar
Daemon
deepin
2023-08-31 07:12
Author

怎么卸载通过 sudo make install 安装的内核

执行:

图片.png

实际上我安装了6.4.11 现在又安装了6.5,都是通过sudo make install 安装的

我想卸载6.4.11,网上的方法试了好像不行。

Reply Favorite View the author
All Replies
安洛
deepin
2023-08-31 07:28
#1
It has been deleted!
Ziggy
deepin
2023-08-31 07:40
#2

回去你build的目录sudo make uninstall,前提是build之后目录没动过

Reply View the author
qq4945286
deepin
2023-08-31 16:01
#3

这是删除自己编译内核的方法

sudo rm -rf /lib/modules/3.16.63
sudo rm -rf /usr/src/linux-headers-3.16.63
sudo rm /boot/3.16.63
sudo rm /var/lib/dpkg/info/linux-headers-3.16.63*
sudo update-grub

最后一个/后面是你要删除的内核版本号,如果终端删除没有,你直接进到目录下找到手动删除对应的文件就好了,我经常这么做的

Reply View the author
dgmenghuan
deepin
2023-08-31 16:15
#4

tail

Reply View the author
Daemon
deepin
2023-08-31 17:46
#5
Ziggy

回去你build的目录sudo make uninstall,前提是build之后目录没动过

没动过目了,但没有build 目录,执行sudo make uninstall 提示没有这样的命令

Reply View the author
Daemon
deepin
2023-08-31 17:46
#6
qq4945286

这是删除自己编译内核的方法

sudo rm -rf /lib/modules/3.16.63
sudo rm -rf /usr/src/linux-headers-3.16.63
sudo rm /boot/3.16.63
sudo rm /var/lib/dpkg/info/linux-headers-3.16.63*
sudo update-grub

最后一个/后面是你要删除的内核版本号,如果终端删除没有,你直接进到目录下找到手动删除对应的文件就好了,我经常这么做的

这么能删干净吗

Reply View the author
晚秋(lateautumn)
Moderator
2023-09-05 00:00
#7

在坛友的推荐下,我用软件Stacer删除,好用直观。查一下以前的帖子,有使用方法。
image.png

Reply View the author