Blogger Information
Blog 60
fans 0
comment 0
visits 66678
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
【阿里云镜像】OpenSUSE全新安装并更改阿里OpenSUSE镜像源✨
大宝
Original
957 people have browsed it

一、参考链接?

阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 (aliyun.com)

opensuse镜像-opensuse下载地址-opensuse安装教程-阿里巴巴开源镜像站 (aliyun.com)

https://mirrors.aliyun.com/opensuse/

二、OpenSUSE全新安装?

1、选择“Installon”安装

image-20211217190338578

等待加载完成

image-20211217190412003

2、点击“Next”

image-20211217190533559

3、点击“下一步”

image-20211217190630343

4、网络设置

image-20211217190744668

5、选择安装系统角色

image-20211217190800200

image-20211217190839142

6、分区

image-20211217190900532

7、时钟和时区

image-20211217191109158

8、创建用户名和密码

image-20211217191154027

9、开始安装

image-20211217191217328

10、确认安装

image-20211217191243809

11、等待安装完成

image-20211217191337329

12、安装完成

image-20211217192513981

13、打开XTerm,配置并测试网络连通性

image-20211217192811812

xyb@localhost:~> vi /etc/sysconfig/network/ifcfg-eth0xyb@localhost:~> vi /etc/sysconfig/network/routesxyb@localhost:~> vi /etc/resolv.confxyb@localhost:~> ping qq.comPING 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 ms64 bytes from 58.250.137.36 (58.250.137.36): icmp_seq=2 ttl=53 time=35.7 ms64 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 2004msrtt min/avg/max/mdev = 35.457/35.723/35.965/0.259 msxyb@localhost:~>

14、SSH远程连接OpenSUSE

image-20211217230328391

三、配置阿里OpenSUSE镜像源?

1、禁用所有软件源

xyb@localhost:~> sudo zypper mr -da

2、添加阿里OpenSUSE镜像源

查看对应的版本 openSUSE Leap 15.3

xyb@localhost:~> hostnamectl   Static hostname: n/aTransient 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-64xyb@localhost:~>

添加阿里OpenSUSE镜像源

sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/oss openSUSE-Aliyun-OSSsudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/non-oss openSUSE-Aliyun-NON-OSSsudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/oss openSUSE-Aliyun-UPDATE-OSSsudo 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:~>

image-20211217231244681

image-20211217231827904

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.rpmnewwarning: /etc/zypp/repos.d/repo-backports-update.repo created as /etc/zypp/repos.d/repo-backports-update.repo.rpmnewwarning: /etc/zypp/repos.d/repo-sle-debug-update.repo created as /etc/zypp/repos.d/repo-sle-debug-update.repo.rpmnewwarning: /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-toolLoading repository data...Reading installed packages...S | Name                 | Summary                            | Type--+----------------------+------------------------------------+--------i | net-tools            | Important Programs for Networking  | package  | net-tools-deprecated | Deprecated Networking Utilities    | packagei | net-tools-lang       | Translations for package net-tools | packagxyb@localhost:~> sudo zypper install net-tools正在加载软件源数据...正在读取已安装的软件包...'net-tools' 已安装过了。没有 'net-tools-2.0+git20170221.479bb4a-3.11.x86_64' 的更新候选。已安装了可获取的最高版本。正在解决软件包依赖关系...无事可做。xyb@localhost:~>
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post