1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
alias useproxy="
export http_proxy=http://10.0.2.2:2080;
export https_proxy=http://10.0.2.2:2080;
export all_proxy=http://10.0.2.2:2080;
"
alias unproxy="
unset http_proxy;
unset https_proxy;
unset all_proxy;
"
## 移除多于内核
echo "-- BEFORE --";rpm -qa | grep ^kernel; rpm -qa |grep ^kernel |grep -E -v `uname -r` |xargs rpm -e --nodeps; echo "--- AFTER ---"; rpm -qa | grep ^kernel
rpm -qa|grep kernel
dnf install epel-release nano net-tools htop -y
dnf install langpacks-en glibc-all-langpacks -y
dnf install langpacks-en glibc-all-langpacks -y
localectl list-locales | grep zh
localectl set-locale LANG="zh_CN.utf8"
localectl status
dnf groupinstall 'Development Tools' -y
dnf install cmake -y
# 搜索文件Pkg
yum provides "*/pg_config"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install fd-find
cargo install ripgrep
cargo install lsd
|