[内容] Linux 图形桌面 (Fedora 版)

内容一:Xfce 图形桌面

1.1 Xfce 的安装方法

# dnf install @xfce-desktop-enviroment

或者:

# yum groupinstall "Xfce Desktop"

或者:

# dnf group install -y "Xfce Desktop"

1.2 Xfce 的简介

Fedora Xfce 定制版展示了 Xfce 桌面,Xfce 桌面追求快速和轻巧,同时用户界面友好并有精彩的视觉盛宴。

1.3 Xfce 的展示和介绍网站

https://spins.fedoraproject.org/xfce/

内容二:LXDE 图形桌面

2.1 LXDE 的安装方法

# dnf install @lxde-desktop

或者:

# yum groupinstall "LXDE Desktop"

或者:

# dnf group install -y "LXDE Desktop"

2.2 LXDE 的简介

LXDE,全名为“轻量级 X11 桌面环境”,是一款极速轻快、实用而且低功耗的桌面环境。

2.3 LXDE 的展示和介绍网站

https://spins.fedoraproject.org/lxde/

内容三:LXQt 图形桌面

3.1 LXQt 的安装方法

# dnf install @lxqt-desktop

或者:

# yum groupinstall "LXQt Desktop"

或者:

# dnf group install -y "LXQt Desktop"

3.2 LXQt 的简介

Fedora LXQt 提供了一个轻量、完整的 LXQt 桌面环境。

3.3 LXQt 的展示和介绍网站

https://spins.fedoraproject.org/zh_Hans_CN/lxqt/

内容四:Cinnamon 图形桌面

4.1 Cinnamon 的安装方法

# dnf install @cinnamon-desktop

或者:

# yum groupinstall "Cinnamon Desktop"

或者:

# dnf group install -y "Cinnamon Desktop"

4.2 Cinnamon 的简介

Cinnamon 是一种提供高级创新功能并且尊重传统的用户习惯的Linux桌面环境。

4.3 Cinnamon 的展示和介绍网站

https://spins.fedoraproject.org/cinnamon/

内容五:MATE 图形桌面

5.1 MATE 的安装方法

# dnf install @mate-desktop

或者:

# yum groupinstall "MATE Desktop"

或者:

# dnf group install -y "MATE Desktop"

5.2 MATE 的简介

MATE Compiz 是一款轻量、强大,专为高效率和高性能打造的桌面环境。

5.3 MATE 的展示和介绍网站

https://spins.fedoraproject.org/mate-compiz/

内容六:Sugar 图形桌面

Sugar 的安装方法

# yum groupinstall "Sugar Desktop Environment"

或者:

# dnf group install -y "Sugar Desktop Environment"

内容七:Deepin 图形桌面

Deepin 的安装方法

# yum groupinstall "Deepin Desktop"

或者:

# dnf group install -y "Deepin Desktop"

内容八:i3 图形桌面

8.1 i3 的安装方法

# yum groupinstall "i3 desktop"

或者:

# dnf group install -y "i3 desktop"

8.2 i3 的简介

Fedora i3 定制版提供了流行的 i3 平铺窗口管理器。其使得 i3 对于那些不想用鼠标、触摸板,或是其他指点设备的无论是新手还是高级用户都易于访问且更具吸引力。

8.3 i3 的展示和介绍网站

https://spins.fedoraproject.org/i3/

内容九:Basic 图形桌面

Basic 的安装方法

# yum groupinstall "Basic Desktop"

或者:

# dnf group install -y "Basic Desktop"

内容十:Pantheon 图形桌面

Pantheon 的安装方法

# yum groupinstall "Pantheon Desktop"

或者:

# dnf group install -y "Pantheon Desktop"

内容十一:KDE 图形桌面

KDE 的安装方法

# dnf install @KDE-desktop

或者:

# yum groupinstall "KDE Plasma Workspaces"

或者:

# dnf group install -y "KDE Plasma Workspaces"

内容十二:GNOME 图形桌面

GNOME 的安装方法

# dnf install @gnome

或者:

# yum groupinstall "GNOME"

或者:

# dnf group install -y "GNOME"

[命令] SLE 命令 SUSEConnect (注册客户端到 SUSE Repository Mirroring Tool (RMT))

如果是 HTTP 协议:

# SUSEConnect -u http://<SUSE Repository Mirroring Tool (RMT) Server's IP address or FQDN>

或者:

# SUSEConnect --url http://<SUSE Repository Mirroring Tool (RMT) Server's IP address or FQDN>

如果是 HTTPS 协议:

# SUSEConnect -u https://<SUSE Repository Mirroring Tool (RMT) Server's IP address or FQDN>

或者:

# SUSEConnect --url https://<SUSE Repository Mirroring Tool (RMT) Server's IP address or FQDN>

[命令] CentOS Linux & RHEL 命令 YUM (管理软件和软件源)

内容一: 帮助文档相关

1.1 显示 YUM 帮助信息

# yum help

1.2 显示 YUM 子选项的帮助信息

# yum help <option>

或者:

# yum <option> help

内容二:软件相关

2.1 安装软件

2.1.1 交互式
# yum install <software>
2.1.2 非交互式
# yum -y install <software>

或者:

# yum install <software> -y

2.2 删除软件

2.2.1 交互式
# yum remove <software>
2.2.2 非交互式
# yum -y remove <software>

或者:

# yum remove <software> -y

2.3 升级软件

2.3.1 升级软件
2.3.1.1 交互式
# yum update <software>
2.3.1.2 非交互式
# yum -y update <software>

或者:

# yum update <software> -y
2.3.2 升级所有软件
2.3.2.1 升级所有软件
2.3.2.1.1 交互式
# yum update
2.3.2.1.2 非交互式
# yum -y update

或者:

# yum update -y
2.3.2.2 升级除某软件外的所有软件
2.3.2.2.1 交互式
# yum update --exclude=<software>
2.3.2.2.2 非交互式
# yum -y update --exclude=<software>

或者:

# yum update --exclude=<software> -y
2.3.2.3 显示所有可以升级的软件
# yum check-update

2.4 显示软件

2.4.1 显示软件
2.4.1.1 显示软件
# yum list all | grep <software>
2.4.1.2 显示软件详细信息
# yum info | grep <software>
2.4.2 显示所有软件
# yum list all

内容三:软件组相关

3.1 安装软件组

3.1.1 交互式
# yum groupinstall <group>
3.1.2 非交互式
# yum -y groupinstall <group>

或者:

# yum groupinstall <group> -y

3.2 删除软件组

3.2.1 交互式
# yum groupremove <group>
3.2.2 非交互式
# yum -y groupremove <group>

或者:

# yum groupremove <group> -y

3.3 显示所有可用软件组

# yum group list

内容四:安全相关

4.1 Errata

4.1.1 Errata
4.1.1.1 安装 Errata
4.1.1.1.1 交互式
# yum update --advisory=<errata>
4.1.1.1.2 非交互式
# yum -y update --advisory=<errata>

或者:

# yum update --advisory=<errata> -y
4.1.1.2 显示 Errata 的详细信息
# yum updateinfo <errata>
4.1.2 所有 Errata
4.1.2.1 安装所有 Errata
4.1.2.1.1 交互式
# yum update-minimal --security
4.1.2.1.2 非交互式
# yum -y update-minimal --security

或者:

# yum update-minimal --security -y
4.1.2.2 显示所有 Errata 和相关软件版本
# yum updateinfo list
4.1.2.3 显示所有 Errata 和相关的 CVE
# yum updateinfo info security

4.2 CVE

4.2.1 CVE
4.2.1.1 安装 CVE
4.2.1.1.1 交互式
# yum update --cve <CVE>
4.2.1.1.2 非交互式
# yum -y update --cve <CVE>

或者:

# yum update --cve <CVE> -y
4.2.2 所有 CVE
4.2.2.1 显示所有 CVE 和相关软件版本
# yum updateinfo list cves
4.2.2.2 显示所有 CVE 和相关的 Errata
# yum updateinfo info security

4.2 安全补丁

4.2.1 安全补丁
4.2.1.1 安装安全补丁
4.2.1.1.1 交互式
# yum update <security patch>
4.2.1.1.2 非交互式
# yum -y update <security patch>

或者:

# yum update <security patch> -y
4.2.2 所有安全补丁
4.2.2.1 安装所有安全补丁
4.2.2.1.1 交互式
# yum update --security
4.2.2.1.2 非交互式
# yum -y update --security

或者:

# yum update --security -y
4.2.2.2 显示所有安全补丁
# yum check-update --security

内容五:软件源相关

5.1 显示所有软件源

# yum repolist 

5.2 缓存软件源列表

5.2.1 缓存所有已启用软件源列表
# yum repolist 
5.2.2 清除所有软件源列表缓存
# yum clean all
5.2.3 保存所有软件源列表缓存
# yum makecache

内容六:软件模块相关 (切换软件可用的版本)

6.1 软件模块相关的格式

6.1.1 显示所有软件模块
# yum module list
6.1.2 重置软件模块
# yum module reset <module>
6.1.3 设置软件模块
# yum module enable <module>:<versione>

6.2 切换软件模块的案例

6.2.1 检测当前软件兼容情况
# yum distro-sync

(注意:需要确保这条命令执行有以后没有报错)

6.2.2 显示所有软件模块
# yum module list | grep podman
container-tools      rhel8 [d]       common [d]                               Most recent (rolling) versions of podman, buildah, skopeo, runc, conmon, runc, conmon, CRIU, Udica, etc as well as dependencies such as container-selinux built and tested together, and updated as frequently as every 12 weeks.
container-tools      1.0             common [d]                               Stable versions of podman 1.0, buildah 1.5, skopeo 0.1, runc, conmon, CRIU, Udica, etc as well as dependencies such as container-selinux built and tested together, and supported for 24 months.                                 
container-tools      2.0             common [d]                               Stable versions of podman 1.6, buildah 1.11, skopeo 0.1, runc, conmon, etc as well as dependencies such as container-selinux built and tested together, and supported as documented on the Application Stream lifecycle page.    
container-tools      3.0             common [d]                               Stable versions of podman 3.0, buildah 1.19, skopeo 1.2, runc, conmon, etc as well as dependencies such as container-selinux built and tested together, and supported as documented on the Application Stream lifecycle page.    
container-tools      4.0             common [d]                               Stable versions of podman 4.0, buildah 1.24, skopeo 1.6, runc, conmon, etc as well as dependencies such as container-selinux built and tested together, and supported as documented on the Application Stream lifecycle page.  

(补充:这里以显示所有和 podman 软件相关的软件模块为例)

6.2.3 设置软件模块
6.2.3.1 重置软件模块
# yum module reset container-tools

(补充:这里以重置 container-tools 软件模块为例)

6.2.3.2 设置软件模块
# yum module enable container-tools:3.0

(补充:这里以设置 container-tools 软件模块版本号为 3.0 为例)

6.2.3.3 显示设置 container-tools 软件模块版本号为 3.0 时 podman 软件的可用版本
# yum list all | egrep ^podman\.x         
podman.x86_64                                           3.0.1-9.module+el8.6.0+14874+64436299                       rhel-8-for-x86_64-appstream-rpms    

(补充:可以看到此时 podman 软件的可用版本是 3.0.1-9)

6.2.4 重置软件模块
6.2.4.1 重置软件模块
# yum module reset container-tools

(补充:这里以重置 container-tools 软件模块为例)

6.2.4.2 显示 container-tools 软件模块没有设置时 podman 软件的可用版本
# yum list all | egrep ^podman\.x
podman.x86_64                                           2:4.0.2-6.module+el8.6.0+14877+f643d2d6                     rhel-8-for-x86_64-appstream-rpms

(补充:可以看到此时 podman 软件的可用版本是 2:4.0.2-6)

内容七:管理相关

7.1 显示 YUM 历史命令

# yum history

7.2 显示 YUM 安装记录

# yum history info

[步骤] Linux 全局加密 SSL 的设置 (CentOS Linux 8 & RHEL 8 版)

步骤一:显示当前 SSL 全局加密 SSL 的状况

# update-crypto-policies --show
DEFAULT

(补充:这里的 DEFAULT 表示可以使用 2048 位及以上位数的 SSL)

步骤二:切换当前 SSL 全局加密 SSL

# update-crypto-policies --set FUTURE


补充:
1) 这里以将全局加密 SSL 切换到 FUTURE 状态为例
2) 此时只能使用 4096 位及以上位数的 SSL