← 返回命令列表

Linux command

yast2 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Launch YaST graphical interface

sudo yast2

Launch YaST text interface

sudo yast2 --ncurses

Open specific module

sudo yast2 [sw_single]

List available modules

yast2 --list

Install packages

sudo yast2 --install [package_name]

Remove packages

sudo yast2 --remove [package_name]

Configure network

sudo yast2 lan

说明

yast2 (Yet another Setup Tool 2) is the comprehensive system configuration tool for openSUSE and SUSE Linux Enterprise. It provides both graphical and text interfaces for system administration. YaST can configure hardware, networking, security, software packages, system services, and users. Modules handle specific tasks, accessible from the control center or directly via command line. The tool supports AutoYaST for automated installations using XML control files, enabling unattended deployment of multiple systems.

参数

--ncurses
Force text-based interface.
--qt
Force Qt graphical interface.
--gtk
Force GTK graphical interface.
--list
List available modules.
--install _pkg_
Install package.
--remove _pkg_
Remove package.
--update _pkg_
Update package.
--help
Display help.

FAQ

What is the yast2 command used for?

yast2 (Yet another Setup Tool 2) is the comprehensive system configuration tool for openSUSE and SUSE Linux Enterprise. It provides both graphical and text interfaces for system administration. YaST can configure hardware, networking, security, software packages, system services, and users. Modules handle specific tasks, accessible from the control center or directly via command line. The tool supports AutoYaST for automated installations using XML control files, enabling unattended deployment of multiple systems.

How do I run a basic yast2 example?

Run `sudo yast2` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --ncurses do in yast2?

Force text-based interface.