共计 7195 个字符,预计需要花费 18 分钟才能阅读完成。
一、参考链接🎨
阿里巴巴开源镜像站 -OPSX 镜像站 - 阿里云开发者社区 (aliyun.com)
opensuse 镜像 -opensuse 下载地址 -opensuse 装置教程 - 阿里巴巴开源镜像站 (aliyun.com)
https://mirrors.aliyun.com/op…
二、OpenSUSE 全新装置🎈
1、抉择“Installon”装置
期待加载实现
2、点击“Next”
3、点击“下一步”
4、网络设置
5、抉择装置零碎角色
6、分区
7、时钟和时区
8、创立用户名和明码
9、开始装置
10、确认装置
11、期待装置实现
12、装置实现
13、关上 XTerm,配置并测试网络连通性
xyb@localhost:~> vi /etc/sysconfig/network/ifcfg-eth0
xyb@localhost:~> vi /etc/sysconfig/network/routes
xyb@localhost:~> vi /etc/resolv.conf
xyb@localhost:~> ping qq.com
PING qq.com (58.250.137.36) 56(84) bytes of data.
64 bytes from 58.250.137.36 (58.250.137.36): icmp_seq=1 ttl=53 time=35.9 ms
64 bytes from 58.250.137.36 (58.250.137.36): icmp_seq=2 ttl=53 time=35.7 ms
64 bytes from 58.250.137.36 (58.250.137.36): icmp_seq=3 ttl=53 time=35.4 ms
^C
--- qq.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 35.457/35.723/35.965/0.259 ms
xyb@localhost:~>
14、SSH 近程连贯 OpenSUSE
三、配置阿里 OpenSUSE 镜像源🏆
1、禁用所有软件源
xyb@localhost:~> sudo zypper mr -da
2、增加阿里 OpenSUSE 镜像源
查看对应的版本 openSUSE Leap 15.3
xyb@localhost:~> hostnamectl
Static hostname: n/a
Transient hostname: localhost
Icon name: computer-vm
Chassis: vm
Machine ID: 456345e7fb8a44d6964f2a5ca582aeda
Boot ID: ebcc3180dabc4326bf6b364d5235b357
Virtualization: vmware
Operating System: openSUSE Leap 15.3
CPE OS Name: cpe:/o:opensuse:leap:15.3
Kernel: Linux 5.3.18-59.10-default
Architecture: x86-64
xyb@localhost:~>
增加阿里 OpenSUSE 镜像源
sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/oss openSUSE-Aliyun-OSS
sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/non-oss openSUSE-Aliyun-NON-OSS
sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/oss openSUSE-Aliyun-UPDATE-OSS
sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/non-oss openSUSE-Aliyun-UPDATE-NON-OSS
xyb@localhost:~> sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/oss openSUSE-Aliyun-OSS
[sudo] root 的明码:正在增加软件源 'openSUSE-Aliyun-OSS' .............................................................................[结束]
胜利增加了软件源 'openSUSE-Aliyun-OSS'
URI : https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/oss
已启用 : 是
GPG 查看 : 是
主动刷新 : 是
优先级 : 99 (默认优先级)
软件源优先级有效。所有已启用的软件源将应用雷同的优先级。xyb@localhost:~> sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/non-oss openSUSE-Aliyun-NON-OSS
正在增加软件源 'openSUSE-Aliyun-NON-OSS' .........................................................................[结束]
胜利增加了软件源 'openSUSE-Aliyun-NON-OSS'
URI : https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/non-oss
已启用 : 是
GPG 查看 : 是
主动刷新 : 是
优先级 : 99 (默认优先级)
软件源优先级有效。所有已启用的软件源将应用雷同的优先级。xyb@localhost:~> sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/oss openSUSE-Aliyun-UPDATE-OSS
正在增加软件源 'openSUSE-Aliyun-UPDATE-OSS' ......................................................................[结束]
胜利增加了软件源 'openSUSE-Aliyun-UPDATE-OSS'
URI : https://mirrors.aliyun.com/opensuse/update/leap/15.3/oss
已启用 : 是
GPG 查看 : 是
主动刷新 : 是
优先级 : 99 (默认优先级)
软件源优先级有效。所有已启用的软件源将应用雷同的优先级。xyb@localhost:~> sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/non-oss openSUSE-Aliyun-UPDATE-NON-OSS
正在增加软件源 'openSUSE-Aliyun-UPDATE-NON-OSS' ..................................................................[结束]
胜利增加了软件源 'openSUSE-Aliyun-UPDATE-NON-OSS'
URI : https://mirrors.aliyun.com/opensuse/update/leap/15.3/non-oss
已启用 : 是
GPG 查看 : 是
主动刷新 : 是
优先级 : 99 (默认优先级)
软件源优先级有效。所有已启用的软件源将应用雷同的优先级。xyb@localhost:~>
3、刷新软件源
xyb@localhost:~> sudo zypper ref
正在检索软件源 'openSUSE-Aliyun-NON-OSS' 的元数据 ................................................................[结束]
正在构建软件源 'openSUSE-Aliyun-NON-OSS' 的缓存 ..................................................................[结束]
正在检索软件源 'openSUSE-Aliyun-OSS' 的元数据 ....................................................................[结束]
正在构建软件源 'openSUSE-Aliyun-OSS' 的缓存 ......................................................................[结束]
正在检索软件源 'openSUSE-Aliyun-UPDATE-NON-OSS' 的元数据 .........................................................[结束]
正在构建软件源 'openSUSE-Aliyun-UPDATE-NON-OSS' 的缓存 ...........................................................[结束]
正在检索软件源 'openSUSE-Aliyun-UPDATE-OSS' 的元数据 .............................................................[结束]
正在构建软件源 'openSUSE-Aliyun-UPDATE-OSS' 的缓存 ...............................................................[结束]
全副软件源均已刷新。xyb@localhost:~>
四、装置软件工具⛳
OpenSUSE 装置命令
zypper se xxxxx 是搜寻软件包
zypper in xxxxx 跟你的 apt-get install xxxx 等价
zypper rm xxxx 删除
zypper up xxxx 更新软件
# 更新软件
xyb@localhost:~> sudo zypper update
[sudo] root 的明码:正在加载软件源数据...
正在读取已装置的软件包...
将降级以下 4 个软件包:openSUSE-release openSUSE-release-dvd permissions yast2-theme
将重装以下 1 个产品:"openSUSE Leap 15.3"
4 个软件包待降级.
总下载大小:1.2 MiB。已缓存:0 B。操作实现后,将开释 8.2 KiB。持续吗?[y/n/v/...? 显示全副选项] (y): y
正在撷取 软件包 openSUSE-release-dvd-15.3-lp1532.157.1.x86_64 (1/4), 8.5 KiB(解压后 66 B)正在检索:openSUSE-release-dvd-15.3-lp1532.157.1.x86_64.rpm .........................................[结束 (8.5 KiB/s)]
正在撷取 软件包 permissions-20200127-lp153.24.6.1.x86_64 (2/4), 58.7 KiB(解压后 103.4 KiB)正在检索:permissions-20200127-lp153.24.6.1.x86_64.rpm ..........................................................[结束]
正在撷取 软件包 yast2-theme-4.3.11-lp153.2.6.1.noarch (3/4), 448.8 KiB(解压后 578.3 KiB)正在检索:yast2-theme-4.3.11-lp153.2.6.1.noarch.rpm .............................................................[结束]
正在撷取 软件包 openSUSE-release-15.3-lp1532.157.1.x86_64 (4/4), 687.5 KiB(解压后 233.2 KiB)正在检索:openSUSE-release-15.3-lp1532.157.1.x86_64.rpm .........................................................[结束]
正在查看文件抵触:...............................................................................................[结束]
(1/4) 正在装置:openSUSE-release-dvd-15.3-lp1532.157.1.x86_64 ....................................................[结束]
(2/4) 正在装置:permissions-20200127-lp153.24.6.1.x86_64 .........................................................[结束]
额定的 RPM 输入:
Updating /etc/sysconfig/security ...
(3/4) 正在装置:yast2-theme-4.3.11-lp153.2.6.1.noarch ............................................................[结束]
(4/4) 正在装置:openSUSE-release-15.3-lp1532.157.1.x86_64 ........................................................[结束]
额定的 RPM 输入:
warning: /etc/zypp/repos.d/repo-backports-debug-update.repo created as /etc/zypp/repos.d/repo-backports-debug-update.repo.rpmnew
warning: /etc/zypp/repos.d/repo-backports-update.repo created as /etc/zypp/repos.d/repo-backports-update.repo.rpmnew
warning: /etc/zypp/repos.d/repo-sle-debug-update.repo created as /etc/zypp/repos.d/repo-sle-debug-update.repo.rpmnew
warning: /etc/zypp/repos.d/repo-sle-update.repo created as /etc/zypp/repos.d/repo-sle-update.repo.rpmnew
正在执行 %posttrans 脚本“openSUSE-release-15.3-lp1532.157.1.x86_64.rpm”---------------------------------------------[正在执行 %posttrans 脚本“openSUSE-release-15.3-lp1532.157.1.x86_64.rpm”---------------------------------------------[ 正在执行 %p osttrans 脚本 ........................................................................................[ 结束]
xyb@localhost:~>
localhost:~ # zypper search net-tool
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+----------------------+------------------------------------+--------
i | net-tools | Important Programs for Networking | package
| net-tools-deprecated | Deprecated Networking Utilities | package
i | net-tools-lang | Translations for package net-tools | packag
xyb@localhost:~> sudo zypper install net-tools
正在加载软件源数据...
正在读取已装置的软件包...
'net-tools' 已装置过了。没有 'net-tools-2.0+git20170221.479bb4a-3.11.x86_64' 的更新候选。已装置了可获取的最高版本。正在解决软件包依赖关系...
无事可做。xyb@localhost:~>
正文完