【阿里云镜像】OpenSUSE全新安装并更改阿里OpenSUSE镜像源✨
程序员文章站
2022-05-20 15:58:14
...
一、参考链接?
阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 (aliyun.com)
opensuse镜像-opensuse下载地址-opensuse安装教程-阿里巴巴开源镜像站 (aliyun.com)
https://mirrors.aliyun.com/opensuse/
二、OpenSUSE全新安装?
1、选择“Installon”安装
等待加载完成
2、点击“Next”
3、点击“下一步”
4、网络设置
5、选择安装系统角色
6、分区
7、时钟和时区
8、创建用户名和密码
9、开始安装
10、确认安装
11、等待安装完成
12、安装完成
13、打开XTerm,配置并测试网络连通性
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
三、配置阿里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:~>
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:~>
上一篇: oracle中关于9i与10g,11g不同的子查询括号用法
下一篇: 别人说什么,就信什么,挺傻的
推荐阅读
-
Mac OS 安装maven,并设置阿里云镜像仓库
-
【阿里云镜像】OpenSUSE全新安装并更改阿里OpenSUSE镜像源✨
-
【阿里云镜像】OpenSUSE全新安装并更改阿里OpenSUSE镜像源✨
-
【Rocky Linux】Rocky Linux 8.5版本全新图文安装教程并更换阿里镜像源等配置信息
-
【阿里云镜像】下载并安装Go环境
-
【阿里云镜像】使用VM虚拟机安装OpenWRT并更换阿里云镜像源
-
Eclipse 更改maven源为阿里云镜像的方法
-
【Rocky Linux】Rocky Linux 8.5版本全新图文安装教程并更换阿里镜像源等配置信息
-
【Rocky Linux】Rocky Linux 8.5正式版全新图文安装教程并更换阿里镜像源等配置信息
-
Ubuntu20安装maven并切换阿里镜像源