generated from bing/readnotes
43 lines
987 B
Markdown
43 lines
987 B
Markdown
|
# centos 8 安装kde5
|
|||
|
|
|||
|
本安装方法适用于 centos8, rockylinux8
|
|||
|
|
|||
|
kde5 并未包含在系统软件仓库中,需要添加epel源
|
|||
|
|
|||
|
```bash
|
|||
|
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
|||
|
```
|
|||
|
|
|||
|
或者
|
|||
|
|
|||
|
```bash
|
|||
|
dnf install epel-release
|
|||
|
```
|
|||
|
|
|||
|
使用国内源
|
|||
|
|
|||
|
```bash
|
|||
|
sed -e 's!^metalink=!#metalink=!g' -e 's!^#baseurl=!baseurl=!g' -e 's!//download\.fedoraproject\.org/pub!//mirrors.tuna.tsinghua.edu.cn!g' -e 's!http://mirrors!https://mirrors!g' -i /etc/yum.repos.d/epel.repo
|
|||
|
|
|||
|
sed -e 's!^metalink=!#metalink=!g' -e 's!^#baseurl=!baseurl=!g' -e 's!//download\.example/pub!//mirrors.tuna.tsinghua.edu.cn!g' -e 's!http://mirrors!https://mirrors!g' -i /etc/yum.repos.d/epel.repo
|
|||
|
```
|
|||
|
|
|||
|
开启epel-extra包
|
|||
|
|
|||
|
```bash
|
|||
|
dnf config-manager --set-enabled powertools
|
|||
|
```
|
|||
|
|
|||
|
安装kde5
|
|||
|
|
|||
|
```bash
|
|||
|
yum group install 'KDE Plasma Workspaces'
|
|||
|
systemctl set-default graphical.target
|
|||
|
systemctl enable sddm
|
|||
|
```
|
|||
|
|
|||
|
重启电脑
|
|||
|
|
|||
|
```bash
|
|||
|
reboot
|
|||
|
```
|