适配 Alpine Linux & 优化

This commit is contained in:
SuperManito
2024-01-17 17:14:51 +08:00
parent e04cac1f16
commit 3553c0803b
11 changed files with 262 additions and 201 deletions

View File

@@ -3,39 +3,43 @@
!!! quote ""
- 如果提示 `Command 'curl' not found` 则说明当前未安装 `curl` 软件包
=== "Debian 系"
=== "Debian 系 Linux"
``` sh
apt-get install -y curl
```
``` sh
apt-get install -y curl
```
> `Debian`   `Ubuntu`   `Kali`   `Deepin`
> `Debian`   `Ubuntu`   `Kali`   `Deepin`
新装系统需要先执行一遍更新 `apt-get update`
新装系统需要先执行一遍更新 `apt-get update`
=== "RedHat 系 / OpenCloudOS / openEuler"
=== "RedHat 系 Linux / OpenCloudOS / openEuler"
``` sh
yum install -y curl || dnf install -y curl
```
``` sh
yum install -y curl || dnf install -y curl
```
> `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `OpenCloudOS`   `openEuler`
> `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `OpenCloudOS`   `openEuler`
新装系统需要先执行一遍更新 `yum makecache`
新装系统需要先执行一遍更新 `yum makecache`
=== "openSUSE"
=== "openSUSE"
``` sh
zypper install curl
```
``` sh
zypper install curl
```
=== "Arch Linux"
=== "Arch Linux"
``` sh
pacman -S curl
```
``` sh
pacman -S curl
```
=== "Alpine Linux"
``` sh
apk --no-cache add -f curl bash
```
## 关于开启 SSH 远程登录的方法
@@ -70,7 +74,7 @@
!!! quote ""
=== "Debian 系 Linux"
=== "Debian 系"
``` sh
cp -rvf /etc/apt/sources.list.bak /etc/apt/sources.list
@@ -79,7 +83,7 @@
> `Debian`   `Ubuntu`   `Kali`   `Deepin`
=== "RedHat 系 Linux / OpenCloudOS / openEuler"
=== "RedHat 系 / OpenCloudOS / openEuler"
``` sh
cp -rvf /etc/yum.repos.d.bak /etc/yum.repos.d
@@ -102,6 +106,13 @@
pacman -Sy
```
=== "Alpine Linux"
``` sh
cp -rvf /etc/apk/repositories.bak /etc/apk/repositories
apk update -f
```
## 其它
!!! quote ""