Skip to content

Commit 4a1eb69

Browse files
committed
doc: update yum.md.
1 parent f6ff51b commit 4a1eb69

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

Diff for: docs/yum.md

+18-9
Original file line numberDiff line numberDiff line change
@@ -252,21 +252,21 @@ $ yum update --security
252252

253253
#### upgrade
254254

255-
更新包考虑过时
256-
257-
#### localinstall
258-
259-
从本地文件、http 或 ftp 安装包
260-
261255
```bash
262-
$ yum localinstall abc-1-1.i686.rpm
256+
$ yum -y upgrade
263257
```
264258

265-
从本地目录安装 abc 包
259+
更新包考虑过时,只升级所有包,不升级软件和系统内核
260+
261+
#### localinstall
266262

267263
```bash
264+
# 从本地文件、http 或 ftp 安装包
265+
$ yum localinstall abc-1-1.i686.rpm
266+
# 从本地目录安装 abc 包
268267
$ yum localinstall http://myrepo/abc-1-1.i686.rpm
269268
```
269+
<!--rehype:className=wrap-text-->
270270

271271
从 FTP 站点安装 abc
272272

@@ -369,8 +369,17 @@ $ reposync -r rhel-atomic-host-beta-rpms
369369

370370
#### yumdownloader
371371

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-->
373381

382+
从 repo 下载一个包到当前目录
374383

375384
### 不同 YUM 命令的常用选项
376385

Diff for: scripts/style/style.css

+4
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
735735
border-radius: 0 0 0.5rem 0.5rem;
736736
}
737737

738+
.wrap-header.h3wrap > .wrap-body :not(:first-child):last-child {
739+
border-radius: 0 0 0.5rem 0.5rem;
740+
}
741+
738742
.wrap-header.h3wrap > .wrap-body {
739743
z-index: 0;
740744
display: flex;

0 commit comments

Comments
 (0)