linux poison RSS
linux poison Email

How To use zypper in OpenSuse

Installing and Removing Software with Zypper

To install a package from registered repositories, use

zypper install package_name

To remove an installed package, use


zypper remove package_name

By default, zypper asks for confirmation before installing or removing a selected package. Override this behavior using the --non-interactive option.

Updating Software with Zypper

There are two different ways to update software using zypper. To integrate all officially released patches into your system, just run the

zypper update

command. In this case, all patches that are available in your repositories are checked for relevance, and installed if necessary.

If a repository just has new packages, but does not provide patches, zypper update does not show any effect. To update all of these packages, you must specify to install updates of the type package:

zypper update -t package

To update individual packages, simply use the installation command:

zypper install package_name

A list of all new packages available can be obtained with the command

zypper list-updates -t package

Managing Repositories

All installation or update commands of zypper rely on a list of repositories known to zypper. To list all repositories known to the system, use the command

zypper repos

If you want to remove a repository from the list, use the command zypper renamerepo together with the alias of the repository you want to delete. To remove the Main Repository (Non-OSS) from the example, use the following command:

zypper renamerepo Main Repository (Non-OSS)

To add a repository, run

zypper addrepo URI Alias


0 comments:

Post a Comment

Related Posts with Thumbnails