Skip to content

Commit

Permalink
docs: update for centos
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Nov 19, 2022
1 parent 2bc43f2 commit a575852
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<img src="example/assets/ui.png" width="600"/>

APT Proxy is a Lightweight and Reliable APT packages (Ubuntu / Debian) cache tool, supports a large number of common system and Docker usage.
APT Proxy is a Lightweight and Reliable APT & YUM packages (Ubuntu / Debian / CentOS) cache tool, supports a large number of common system and Docker usage.

You can safely use it instead of [apt-cacher-ng](https://www.unix-ag.uni-kl.de/~bloch/acng/).

Expand Down Expand Up @@ -51,6 +51,18 @@ http_proxy=http://your-domain-or-ip-address:3142 apt-get -o pkgProblemResolver=t

When we need to execute the above commands repeatedly in batches, the speed of update and installation **will be greatly improved**.

### CentOS

Although CentOS uses Yum instead of APT, APT-Proxy also supports its acceleration:

```bash
sed -ie s/mirrorlist.*$// /etc/yum.repos.d/CentOS-Base.repo
sed -ie s/#baseurl/baseurl/ /etc/yum.repos.d/CentOS-Base.repo
sed -ie s#http://mirror.centos.org#http://host.docker.internal:3142# /etc/yum.repos.d/CentOS-Base.repo
```

After adjusting the software source, execute `yum update` to verify whether the configuration takes effect.

### Specified Mirror

There are currently two ways to specify:
Expand Down
14 changes: 13 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<img src="example/assets/ui.png" width="600"/>

APT Proxy 是一款轻量的、可靠的 APT 包(Ubuntu / Debian)缓存工具,能够在各种不同的操作系统环境中运行。
APT Proxy 是一款轻量的、可靠的 APT / YUM 包(Ubuntu / Debian / CentOS )缓存工具,能够在各种不同的操作系统环境中运行。

你可以将它作为古老的 [apt-cacher-ng](https://www.unix-ag.uni-kl.de/~bloch/acng/) 安全可靠的替代品。

Expand Down Expand Up @@ -51,6 +51,18 @@ http_proxy=http://your-domain-or-ip-address:3142 apt-get -o pkgProblemResolver=t

当我们需要批量重复执行上面的命令,安装大量软件、或者大体积软件的时候,更新和安装的执行速度将会有**巨大的提升**

### CentOS

虽然 CentOS 使用的是 Yum 而非 APT,但是 APT-Proxy 同样支持为其加速:

```bash
sed -ie s/mirrorlist.*$// /etc/yum.repos.d/CentOS-Base.repo
sed -ie s/#baseurl/baseurl/ /etc/yum.repos.d/CentOS-Base.repo
sed -ie s#http://mirror.centos.org#http://host.docker.internal:3142# /etc/yum.repos.d/CentOS-Base.repo
```

在调整软件源之后,执行 `yum update` 可以验证配置是否生效。

### 选择软件源

如果你不希望软件自动选择服务器响应最快的源,这里有两种方式来指定要使用的软件源:
Expand Down

0 comments on commit a575852

Please sign in to comment.