05.12.2012 Views

SUSE Manager Documentation

SUSE Manager Documentation

SUSE Manager Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modifying repositories is not limited to a single repository—you can also operate on<br />

groups:<br />

• -a: all repositories<br />

• -l: local repositories<br />

• -t: remote repositories<br />

• -m TYPE: repositories of a certain type (TYPE can be one of the following: http,<br />

https, ftp, cd, dvd, dir, file, cifs, smb, nfs, hd, iso)<br />

To rename a repository alias, use the renamerepo command. The following example<br />

changes the alias from “Mozilla Firefox” to just “firefox”:<br />

zypper renamerepo 'Mozilla Firefox' firefox<br />

2.1.2.5 Querying Repositories and Packages with<br />

Zypper<br />

Zypper offers various methods to query repositories or packages. To get lists of all<br />

products, patterns, packages or patches available, use the following commands:<br />

zypper products<br />

zypper patterns<br />

zypper packages<br />

zypper patches<br />

20 Reference Guide<br />

To query all repositories for certain packages, use search. It works on package names,<br />

capabilities or, optionally, on package summaries and descriptions. Using the wildcards<br />

* and ? in the search term is allowed. By default, the search is not case-sensitive.<br />

zypper se firefox # simple search for "firefox"<br />

zypper se '*fire*' # using wildcards<br />

zypper se -d fire # also search in package descriptions and summaries<br />

zypper se -u firefox # only display packages not already installed<br />

To search for packages which provide a special capability, use the command<br />

what-provides. For example, if you would like to know which package provides<br />

the perl Module SVN::Core, use the following command:<br />

zypper what-provides 'perl(SVN::Core)'

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!