suse linux commands of zypper

zypper se xxxxx is the search for packages

zypper in xxxxx with your apt-get install xxxx equivalent to
delete zypper rm xxxx

zypper up xxxx software update

 

Previous contact with the red hat or a class of debian linux commonly used tool is the online software installed yum or apt-get command, but suse linux there is a more useful tool: zypper
SUSE official source

zypper ar http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse main

zypper ar http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/ nonoss

Ar zypper http://download.opensuse.org/update/11.3/suse Update
add a good future need to refresh:

zypper refresh

Common Commands

Install a package
zypper install package_name
install a version of the package
zypper install package_name = version
installed at the beginning of a word to name all packages
zypper install package_name *
uninstall a package
zypper remove package_name
upgrade a package
zypper update package_name
to install and remove multiple packages once, use the +/- or ~ / modify key one time to install and remove packages:!
zypper install emacs -vim
or:
zypper the Remove emacs + vim
can use this command to get all new packages available list:
zypper the Updates list-
like, to list all the required packages, use:
zypper patches-list

Specific software management the following items:
install, in the installation package.
remove, rm remove packages.
verify, integrity dependencies ve tested package.
update, up the installed packages updated to the new version.
dist-upgrade, dup perform an upgrade of the entire system.
source-install, si installation packages and their source code compilation dependencies.

For example: Upgrade openssh
first with zypper uninstall openssh
suse linux commands of zypper
then install a new package to openssh (rpm or tar can)

Note: the / etc / sysconfig / network or the network configuration YaST
YaST configuration
suse linux commands of zypper

Guess you like

Origin blog.51cto.com/xjsunjie/2407973