diff --git "a/docs/Linux\347\263\273\347\273\237/debian\347\263\273\346\232\202\345\201\234\345\206\205\346\240\270\346\233\264\346\226\260.md" "b/docs/Linux\347\263\273\347\273\237/debian\347\263\273\346\232\202\345\201\234\345\206\205\346\240\270\346\233\264\346\226\260.md" new file mode 100644 index 000000000..835f114c0 --- /dev/null +++ "b/docs/Linux\347\263\273\347\273\237/debian\347\263\273\346\232\202\345\201\234\345\206\205\346\240\270\346\233\264\346\226\260.md" @@ -0,0 +1,17 @@ +# debian系暂停内核更新 + +## 标记内核为保持现状 + +```bash +sudo apt-mark hold linux-image-generic linux-headers-generic +``` + +## 查看标记 +```bash +sudo apt-mark showhold +``` + +## 恢复标记 +```bash +sudo apt-mark unhold linux-image-generic linux-headers-generic +``` diff --git "a/docs/Linux\347\263\273\347\273\237/index.md" "b/docs/Linux\347\263\273\347\273\237/index.md" index d07f854b6..1cfa0b555 100644 --- "a/docs/Linux\347\263\273\347\273\237/index.md" +++ "b/docs/Linux\347\263\273\347\273\237/index.md" @@ -1,4 +1,5 @@ # Linux系统 +- [debian系暂停内核更新](./debian系暂停内核更新.md) - [迁移docker目录/var/lib/docker/](./迁移docker目录.md) - [ubuntu桌面](./ubuntu桌面/) - [linux centos系统pyinstaller打包环境准备](./linux系统pyinstaller打包环境准备.md)