openSUSE 官方软件包单独下载网址
https://software.opensuse.org
openSUSE 官方软件包单独下载网址
https://software.opensuse.org
# yum help
# yum help <option>
或者:
# yum <option> help
# yum install <software>
# yum -y install <software>
或者:
# yum install <software> -y
# yum remove <software>
# yum -y remove <software>
或者:
# yum remove <software> -y
# yum update <software>
# yum -y update <software>
或者:
# yum update <software> -y
# yum update
# yum -y update
或者:
# yum update -y
# yum update --best --allowerasing
# yum -y update --best --allowerasing
或者:
# yum update --best --allowerasing -y
# yum update --exclude=<software>
# yum -y update --exclude=<software>
或者:
# yum update --exclude=<software> -y
# yum ./yum.conf update
(补充:这里以使用 ./yum.conf 配置文件升级所有软件包为例)
# yum -y -c ./yum.conf update
(补充:这里以使用 ./yum.conf 配置文件升级所有软件包为例)
# yum check-update
# dnf needs-restarting --reboothint
# yum list <software>
或者:
# yum list all | grep <software>
# yum info <software>
# yum list <software> --showduplicate | sort -r
# yum module provides <software>
# yum module provides ipa-client
Updating Subscription Management repositories.
Last metadata expiration check: 1:38:12 ago on Fri 26 Jul 2024 08:00:39 AM CST.
ipa-client-4.7.1-11.module+el8+2842+7481110c.x86_64
Module : idm:DL1:820190227212412:5986f621:x86_64
Profiles : client common
Repo : rhel-8-for-x86_64-appstream-rpms
Summary : The Red Hat Enterprise Linux Identity Management system module
......
(补充:从这里的输出结果可以看出 ipa-client 软件包来自 idm 模块,版本是 DL1)
# yum list all
# yum groupinstall <group>
# yum -y groupinstall <group>
或者:
# yum groupinstall <group> -y
# yum groupremove <group>
# yum -y groupremove <group>
或者:
# yum groupremove <group> -y
# yum group list
# yum update --advisory=<errata>
# yum -y update --advisory=<errata>
或者:
# yum update --advisory=<errata> -y
# yum updateinfo <errata>
# yum update-minimal --security
# yum -y update-minimal --security
或者:
# yum update-minimal --security -y
# yum updateinfo list
# yum updateinfo info security
# yum update --cve <CVE>
# yum -y update --cve <CVE>
或者:
# yum update --cve <CVE> -y
# yum updateinfo list cves
# yum updateinfo info security
# yum update <security patch>
# yum -y update <security patch>
或者:
# yum update <security patch> -y
# yum update --security
# yum -y update --security
或者:
# yum update --security -y
# yum check-update --security
# yum repolist
# yum repolist
# yum clean all
# yum makecache
# yum module provides <software>
# yum module list
# yum module list | grep <software>
# yum module info <module>
# yum module info <module> | grep <submodule>
# dnf module info <module>:<stream>
# yum module reset <module>
# yum module enable <module>:<version>
# yum distro-sync
(注意:需要确保这条命令执行有以后没有报错)
# yum module provides podman
(补充:这里以显示 podman 软件包属于哪个软件模块为例)
# 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 软件相关的软件模块为例)
# yum module reset container-tools
(补充:这里以重置 container-tools 软件模块为例)
# yum module enable container-tools:3.0
(补充:这里以设置 container-tools 软件模块版本号为 3.0 为例)
或者:
# yum module enable container-tools:rhel8
(
补充:
1) 这里以设置最新的 container-tools 软件模块版本号为例
2) 当站主在测试这条命令时,最新的 container-tools 软件模块版本号刚好是 3.0
)
(注意:有些时候只能设置成最新的软件模块版本号后才能升级到最新的软件)
# 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)
# yum module reset container-tools
(补充:这里以重置 container-tools 软件模块为例)
# 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)
# yum history
# yum history info
# yum history
# yum history undo <ID>
(补充:上面第 1 条命令会实现操作的 ID 号,在第 2 条命令中写入那个 ID 号就可以取消那次操作)
# cat /etc/*release*
NAME="openSUSE Leap"
VERSION="15.2"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.2"
PRETTY_NAME="openSUSE Leap 15.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
(注意:确保显示的系统版本是 openSUSE Leap 15.2)
# zypper ls -d
# | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI
---+---------------------------+------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------------------------
1 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
2 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
3 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/
4 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/
(补充:确保以上软件库已处于 Enabled 状态)
# zypper ref
(注意:确保刷新成功,否则请检查网络)
# zypper -n update
# sed -i 's/15.2/${releasever}/g' /etc/zypp/repos.d/*.repo
# zypper --releasever=15.3 refresh
# zypper --releasever=15.3 dup --download-in-advance
# zypper --releasever=15.3 dup
# reboot
# cat /etc/*release*
NAME="openSUSE Leap"
VERSION="15.3"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.3"
PRETTY_NAME="openSUSE Leap 15.3"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.3"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
# zypper ls -d
# | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI
---+---------------------------+------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------------------------
1 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/
2 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/oss/
3 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.3/oss/
4 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.3/non-oss/
4 | repo-backports-update | Update repository of openSUSE Backports | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.3/backports/
5 | repo-sle-update | Update repository with updates from SUSE Linux Enterprise 15 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.3/sle/
(注意:升级到 openSUSE Leap 15.3 系统后,自动新增加了 repo-backports-update 软件库和 repo-sle-update 软件库)
# update-crypto-policies --show
DEFAULT
(补充:这里的 DEFAULT 表示可以使用 2048 位及以上位数的 SSL)
# update-crypto-policies --set FUTURE
(
补充:
1) 这里以将全局加密 SSL 切换到 FUTURE 状态为例
2) 此时只能使用 4096 位及以上位数的 SSL
)
http://mirror.centos.org/centos/7/os/x86_64/
http://mirror.centos.org/centos/7/updates/x86_64/
http://mirror.centos.org/centos/7/extras/x86_64/
http://mirror.centos.org/centos/7/centosplus/x86_64/
http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=$infra
http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=$infra
http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=$infra
http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=$infra
http://mirror.centos.org/centos/8/BaseOS/x86_64/os/
http://mirror.centos.org/centos/8/AppStream/x86_64/os/
http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS&infra=$infra
http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=$infra