File tree 2 files changed +22
-9
lines changed
2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -252,21 +252,21 @@ $ yum update --security
252
252
253
253
#### upgrade
254
254
255
- 更新包考虑过时
256
-
257
- #### localinstall
258
-
259
- 从本地文件、http 或 ftp 安装包
260
-
261
255
``` bash
262
- $ yum localinstall abc-1-1.i686.rpm
256
+ $ yum -y upgrade
263
257
```
264
258
265
- 从本地目录安装 abc 包
259
+ 更新包考虑过时,只升级所有包,不升级软件和系统内核
260
+
261
+ #### localinstall
266
262
267
263
``` bash
264
+ # 从本地文件、http 或 ftp 安装包
265
+ $ yum localinstall abc-1-1.i686.rpm
266
+ # 从本地目录安装 abc 包
268
267
$ yum localinstall http://myrepo/abc-1-1.i686.rpm
269
268
```
269
+ <!-- rehype:className=wrap-text-->
270
270
271
271
从 FTP 站点安装 abc
272
272
@@ -369,8 +369,17 @@ $ reposync -r rhel-atomic-host-beta-rpms
369
369
370
370
#### yumdownloader
371
371
372
- 从 repo 下载一个包到当前目录
372
+ ``` bash
373
+ # 使用本地源离线安装 net-tools 工具包
374
+ $ yumdownloader net-tools.x86_64
375
+ # 使用 –destdir 参数设置下载的目标目录
376
+ $ yumdownloader net-tools.x86_64 --destdir=/usr/local/bin/
377
+ # 使用 –resolve 参数解决依赖关系并下载所需的安装包
378
+ $ yumdownloader net-tools.x86_64 --resolve --destdir=/usr/local/bin/
379
+ ```
380
+ <!-- rehype:className=wrap-text-->
373
381
382
+ 从 repo 下载一个包到当前目录
374
383
375
384
### 不同 YUM 命令的常用选项
376
385
Original file line number Diff line number Diff line change @@ -735,6 +735,10 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
735
735
border-radius : 0 0 0.5rem 0.5rem ;
736
736
}
737
737
738
+ .wrap-header .h3wrap > .wrap-body : not (: first-child ): last-child {
739
+ border-radius : 0 0 0.5rem 0.5rem ;
740
+ }
741
+
738
742
.wrap-header .h3wrap > .wrap-body {
739
743
z-index : 0 ;
740
744
display : flex;
You can’t perform that action at this time.
0 commit comments