|
@@ -1,75 +1,75 @@
|
|
|
% zypper
|
|
|
|
|
|
-# Install packages
|
|
|
+# 安装软件包 | Install packages
|
|
|
zypper install <package-name>
|
|
|
|
|
|
-# Install local rpm package
|
|
|
+# 安装本地rpm包 | Install local rpm package
|
|
|
zypper install <filepath-rpm>
|
|
|
|
|
|
-# Download package without installing
|
|
|
+# 仅下载软件包不安装 | Download package without installing
|
|
|
zypper install --download-only <package-name>
|
|
|
|
|
|
-# Downgrade or install a package with a specific version
|
|
|
+# 降级或安装特定版本的软件包 | Downgrade or install a package with a specific version
|
|
|
zypper install --force <package-name>-<package-version>
|
|
|
|
|
|
-# Install a package and remove a package in one go
|
|
|
+# 同时安装一个包并移除另一个包 | Install a package and remove a package in one go
|
|
|
zypper install <package-name-1> -<package-name-2>
|
|
|
|
|
|
-# Remove package
|
|
|
+# 移除软件包 | Remove package
|
|
|
zypper remove <package-name>
|
|
|
|
|
|
-# Automatically remove unneeded dependencies
|
|
|
+# 自动移除不需要的依赖 | Automatically remove unneeded dependencies
|
|
|
zypper remove --clean-deps <package-name>
|
|
|
|
|
|
-# Update packages
|
|
|
+# 更新软件包 | Update packages
|
|
|
zypper update
|
|
|
|
|
|
-# Only download the packages, do not install
|
|
|
+# 仅下载软件包,不安装 | Only download the packages, do not install
|
|
|
zypper update --download-only
|
|
|
|
|
|
-# List available updates
|
|
|
+# 列出可用更新 | List available updates
|
|
|
zypper list-updates
|
|
|
|
|
|
-# Update specific package
|
|
|
+# 更新指定软件包 | Update specific package
|
|
|
zypper update <package-name>
|
|
|
|
|
|
-# Perform a distribution upgrade
|
|
|
+# 执行发行版升级 | Perform a distribution upgrade
|
|
|
zypper dist-upgrade
|
|
|
|
|
|
-# Search packages
|
|
|
+# 搜索软件包 | Search packages
|
|
|
zypper search <query>
|
|
|
|
|
|
-# Search in the file list of packages
|
|
|
+# 在软件包的文件列表中搜索 | Search in the file list of packages
|
|
|
zypper search --file-list <query>
|
|
|
|
|
|
-# list all packages depended on the package
|
|
|
+# 列出依赖于指定包的所有包 | List all packages depended on the package
|
|
|
zypper search --requires <package-name>
|
|
|
|
|
|
-# List all packages providing the specified capability
|
|
|
+# 列出提供指定功能的所有包 | List all packages providing the specified capability
|
|
|
zypper what-provides <query>
|
|
|
|
|
|
-# Show full information for specified packages
|
|
|
+# 显示指定包的完整信息 | Show full information for specified packages
|
|
|
zypper info <package-name>
|
|
|
|
|
|
-# List dependencies of package
|
|
|
+# 列出包的依赖关系 | List dependencies of package
|
|
|
zypper info --requires <package-name>
|
|
|
|
|
|
-# List what the current package provides
|
|
|
+# 列出当前包提供的内容 | List what the current package provides
|
|
|
zypper info --provides <package-name>
|
|
|
|
|
|
-# List all available packages
|
|
|
+# 列出所有可用的包 | List all available packages
|
|
|
zypper packages
|
|
|
|
|
|
-# List all installed packages
|
|
|
+# 列出所有已安装的包 | List all installed packages
|
|
|
zypper packages --installed-only
|
|
|
|
|
|
-# Clean up all local caches
|
|
|
+# 清理所有本地缓存 | Clean up all local caches
|
|
|
zypper clean
|
|
|
|
|
|
-# Clean both metadata and package caches
|
|
|
+# 清理元数据和包缓存 | Clean both metadata and package caches
|
|
|
zypper clean --all
|
|
|
|
|
|
-# Start a shell to enter multiple commands in one session
|
|
|
+# 启动shell以在一个会话中输入多个命令 | Start a shell to enter multiple commands in one session
|
|
|
zypper shell
|
|
|
|
|
|
|