Skip to content

Commit

Permalink
doc: update yum.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 7, 2022
1 parent f6ff51b commit 4a1eb69
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
27 changes: 18 additions & 9 deletions docs/yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,21 +252,21 @@ $ yum update --security

#### upgrade

更新包考虑过时

#### localinstall

从本地文件、http 或 ftp 安装包

```bash
$ yum localinstall abc-1-1.i686.rpm
$ yum -y upgrade
```

从本地目录安装 abc 包
更新包考虑过时,只升级所有包,不升级软件和系统内核

#### localinstall

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

从 FTP 站点安装 abc

Expand Down Expand Up @@ -369,8 +369,17 @@ $ reposync -r rhel-atomic-host-beta-rpms

#### yumdownloader

从 repo 下载一个包到当前目录
```bash
# 使用本地源离线安装 net-tools 工具包
$ yumdownloader net-tools.x86_64
# 使用 –destdir 参数设置下载的目标目录
$ yumdownloader net-tools.x86_64 --destdir=/usr/local/bin/
# 使用 –resolve 参数解决依赖关系并下载所需的安装包
$ yumdownloader net-tools.x86_64 --resolve --destdir=/usr/local/bin/
```
<!--rehype:className=wrap-text-->

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

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

Expand Down
4 changes: 4 additions & 0 deletions scripts/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,10 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
border-radius: 0 0 0.5rem 0.5rem;
}

.wrap-header.h3wrap > .wrap-body :not(:first-child):last-child {
border-radius: 0 0 0.5rem 0.5rem;
}

.wrap-header.h3wrap > .wrap-body {
z-index: 0;
display: flex;
Expand Down

0 comments on commit 4a1eb69

Please sign in to comment.