# 最小化安装后的yum安装

通常RedHat/CentOS服务器都采用最小化安装操作系统，然后做基本定制安装。

## CentOS 7

* 安装[EPEL](https://fedoraproject.org/wiki/EPEL)

```bash
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
```

* 安装编译工具

```bash
yum -y install nmon which sudo nmap-ncat mlocate net-tools rsyslog file ntp ntpdate \
wget tar bzip2 screen sysstat unzip nfs-utils parted lsof man bind-utils \
gcc gcc-c++ make telnet flex autoconf automake ncurses-devel crontabs \
zlib-devel git
```

* CentOS 8 最小化安装：

```
yum install which sudo nmap-ncat mlocate net-tools rsyslog file \
wget tar bzip2 sysstat unzip nfs-utils parted lsof man bind-utils \
gcc gcc-c++ make telnet flex autoconf automake ncurses-devel crontabs \
zlib-devel git
```

* CentOS 8 标准化安装:

```
yum install sysstat nfs-utils gcc gcc-c++ make \
telnet flex autoconf automake ncurses-devel zlib-devel git
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/os/linux/redhat/package/yum_after_mini_install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
