[内容] Linux 版本的查看

内容一:Linux 版本整体信息的查看

# cat /etc/*release*

内容二:Linux 版本某项具体信息的查看

2.1 查看此系统属于哪种 Linux

# lsb_release -i -s 2> /dev/null

2.2 查看此系统的本版

# lsb_release -r -s 2> /dev/null

2.3 查看此系统的内核版本

# uname -r 2> /dev/null

No-cost subscription for open source world

Red Hat no cost subscription : Red Hat Developer Subscription for Individuals

The main function of this license is that can let we access Red Hat knowledge-based articles for individual development purpose

https://developers.redhat.com/products/rhel/download

[CONTENT] The network connections required for system register

Content:

RHEL:

DomainPort NumberPort protocol
subscription.rhsm.redhat.com443TCP
cdn.redhat.com443TCP
RHEL Register Connections Requirement

SLES:

DomainPort NumberPort protocol
scc.suse.com80 or 443
TCP
updates.suse.com80 or 443
TCP
installer-updates.suse.com80 or 443TCP
SLES Register Connections Requirement

Reference:

https://access.redhat.com/solutions/65300

https://www.suse.com/support/kb/doc/?id=000021034#:~:text=%2A%20The%20current%20list%20of%20IPs,for%20scc.suse.com%20and%20registry.suse.com%20are%3A%2099.83.188.102

[步骤] 系统升级 (从 Fedora 39 升级到 Fedora 40)

步骤一:升级所有已安装的软件

# sudo dnf update

步骤二:安装 Fedora 升级软件

# sudo dnf install dnf-plugin-system-upgrade

步骤三:刷新所有现有版本的软件源

# sudo dnf upgrade --refresh

步骤四:下载升级所有所需的软件

# sudo dnf system-upgrade download --releasever=40

步骤五:重启并升级系统

# sudo dnf system-upgrade reboot

(注意:系统会重启,并在后台升级系统,这个步骤可能会持续很长一段时间,根据虚拟机的硬件性能而定)