Skip to content

Commit 69d4b23

Browse files
committed
2016-03-14
1 parent 21a7c12 commit 69d4b23

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Off-line-Yum-Install.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Yum 下载安装包及对应依赖包
2+
3+
------
4+
5+
## 安装
6+
7+
8+
- 安装该软件:`yum install -y yum-plugin-downloadonly`
9+
10+
- 以下载 openssh-server 为例:
11+
- `yum install -y openssh-server --downloadonly --downloaddir=/opt/ssh`
12+
- 在 /opt/ssh 目录下有如下内容:
13+
14+
``` bash
15+
-rw-r--r--. 1 root root 280524 Aug 13 2015 openssh-5.3p1-112.el6_7.x86_64.rpm
16+
-rw-r--r--. 1 root root 448872 Aug 13 2015 openssh-clients-5.3p1-112.el6_7.x86_64.rpm
17+
-rw-r--r--. 1 root root 331544 Aug 13 2015 openssh-server-5.3p1-112.el6_7.x86_64.rpm
18+
```
19+
20+
- 安装下载的 rpm 文件:`sudo rpm -ivh *.rpm`
21+
22+
23+
## NFS 资料
24+
25+
- <http://www.jianshu.com/p/5930545b5591>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [Bash 命令](Bash.md)
77
- [CentOS 其他常用命令](CentOS-Other-Bash.md.md)
88
- [Linux 下常用压缩文件的解压、压缩](File-Extract-Compress.md)
9+
- [Yum 下载安装包及对应依赖包](Off-line-Yum-Install.md)
910
- [SSH(Secure Shell)介绍](SSH.md)
1011
- [FTP(File Transfer Protocol)介绍](FTP.md)
1112
- [VPN(Virtual Private Network)介绍](VPN.md)

0 commit comments

Comments
 (0)