diff --git a/_posts/Linux/ubuntu/update-snap.md b/_posts/Linux/ubuntu/update-snap.md index c24e976..9b85cb6 100644 --- a/_posts/Linux/ubuntu/update-snap.md +++ b/_posts/Linux/ubuntu/update-snap.md @@ -1,9 +1,11 @@ --- -title: Ubuntu 22.04.1 snap-store自身更新 +title: Ubuntu 22.04.1 snap-store自身更新&禁止自动更新 date: 2022-10-05 tags: Ubuntu --- +## snap-store自身更新 + 目前开发的笔记本使用的是ubuntu22.04.1 版本,默认内置snap商店无法完成自身更新,所以小记一下解决办法。 @@ -16,3 +18,27 @@ sudo killall snap-store sudo snap refresh snap-store ``` + + +## 禁止自动更新 + +> 目前snap 稳定版本通道已经支持禁止自动更新,如果下述命令不起作用或报错,请先同上述进行snap-store自身更新 + +### 全部自动禁止更新 +```sh +snap refresh --hold +``` + +### 禁用某个软件更新,比如火狐firefox +```sh +snap refresh --hold firefox +``` + +### 通过 --unhold 参数重新启用自动更新 + +``` +snap refresh --unhold + +# 同理恢复某个软件更新,如火狐 +snap refresh --unhold firefox +``` \ No newline at end of file diff --git a/_posts/编程/PHP/standard.md b/_posts/编程/PHP/standard.md index b47759f..903c397 100644 --- a/_posts/编程/PHP/standard.md +++ b/_posts/编程/PHP/standard.md @@ -122,8 +122,7 @@ $arr = [ ## 代码约束 -1. declare_strict 严格声明 -主要解决程序在处理类型时候避免隐性转换 +1. declare_strict 严格声明。主要解决程序在处理类型时候避免隐性转换 ```php declare(strict_types=1);