使用openSUSE

  • 安装之后的配置

# YaST源的配置的储存位置是
# /etc/zypp/repos.d
# 每一个文件名就是一个源

# 查看当前源列表和状态
zypper repos -d

# 禁用全部源
zypper mr -da
# 手动添加源, $releasever=15.4版本号
zypper ar -cfg 'https://mirrors.tuna.tsinghua.edu.cn/opensuse/distribution/leap/$releasever/repo/oss/' mirror-oss
zypper ar -cfg 'https://mirrors.tuna.tsinghua.edu.cn/opensuse/distribution/leap/$releasever/repo/non-oss/' mirror-non-oss
zypper ar -cfg 'https://mirrors.tuna.tsinghua.edu.cn/opensuse/update/leap/$releasever/oss/' mirror-update
zypper ar -cfg 'https://mirrors.tuna.tsinghua.edu.cn/opensuse/update/leap/$releasever/non-oss/' mirror-update-non-oss

# 第三方软件源列表, Packman包含4个部分: https://zh.opensuse.org/第三方软件源
zypper ar -cfg 'https://mirrors.aliyun.com/packman/suse/openSUSE_Leap_$releasever/Essentials' packman-essentials
zypper ar -cfg 'https://mirrors.aliyun.com/packman/suse/openSUSE_Leap_$releasever/Multimedia' packman-multimedia
zypper ar -cfg 'https://mirrors.aliyun.com/packman/suse/openSUSE_Leap_$releasever/Extra' packman-extra
zypper ar -cfg 'https://mirrors.aliyun.com/packman/suse/openSUSE_Leap_$releasever/Games' packman-games

# 刷新源
zypper ref
# 删除源
zypper removerepo packman-essentials

zypper包管理工具详解 wiki

# 搜索
zypper search nginx
# 安装某个软件包
zypper install package_name

# 检验软件包的依赖关系的完整性。
zypper verify
# 将已经安装的软件包更新到新的版本
zypper update
# 执行整个系统的升级
zypper dist-upgrade

# 更多的操作请使用zypper --help查看

关于输入法

# 默认是iBus,但是iBus和fcitx都是默认安装好了的,卸载ibus,重启
sudo zypper rm ibus
sudo reboot
  • 最强管理界面

zypper install yast2