Zypper Cheat Sheet

ADVERTISEMENT

Zypper Cheat Sheet
More Information:
Page 2
or type
m an zypper
on a term inal
For Zypper version 1.0.9
Package Locks
Distribution Upgrade
Querying
Lock Packages
zypper dist-upgrade
or
zypper dup
zypper addlock
or
zypper al
Note:
Searching Packages
Examples:
When doing a distribution update, the best is to work only
zypper search
or
zypper se
zypper al 'yast2*'
#lock all packages starting with 'yast2'
with the repositories of the distribution you want to install.
Examples:
zypper se -dC --match-words RSI
#look for RSI acronym
Remove Locks
(case-sensitively), also in summaries and descriptions
zypper removelock
or
zypper rl
zypper se 'yast*'
#show all packages starting with 'yast'
Vocabulary
zypper se -r upd
#list all packages from 'upd' repository
Examples:
zypper rl 'yast2*'
#remove locks to all packages starting
zypper se -i sqlite
#show all 'sqlite' installed packages
Repositories
with 'yast2'
zypper se -t pattern -r upd
#list all patterns available in
HTTP or FTP server, DVD, or a folder on a local disc.
the 'upd' repository
where a group or set of packages are located.
Resource Identfiers (URI)
List Locks
To specify locations of repositories or other resources
Getting Information about Packages
zypper locks
or
zypper ll
(RPM files, .repo files) you can use any type of URIs
zypper info
or
zypper if
supported by libzypp. See
Examples:
Libzypp/URI for a complete list and usage examples.
Update Management
zypper info amarok
Refresh
zypper info -t patch amarok
#show info for 'amarok' patch
Refreshing a repository means downloading metadata
Listing Needed Patches
zypper patch-info amarok
#same as above
of packages from the medium (if needed), storing it in
zypper info -t pattern lamp_server
#info 'lamp_server'
zypper list-patches
or
zypper lp
local cache (typically under /var/cache/zypp/raw/
pattern
<alias> directory) and preparsing the metadata
Applying Patches
into .solv files (building the solv cache), typically under
/var/cache/zypp/solv/<alias>.
Getting Information about Dependencies
zypper patch
Services
zypper what-provides
or
zypper wp
Services are one level above repositories and serve to
Listing All Patches
Examples:
manage repositories or to do some special tasks.
zypper wp firefox
zypper patches
Libzypp currently supports only one type of services, the
Repository Index Service (RIS).
Checking Patches
Package Types
Utilities
zypper patch-check
or
zypper pchk
zypper works with several types of resource objects,
called resolvables. A resolvable is a package, patch,
Verify Dependencies
pattern, or a product.
Getting Information About Patches
package - an ordinary RPM package
zypper verify
or
zypper ve
zypper patch-info
patch - update of one or more packages.
Note:
zypper info -t patch
pattern - group of packages required or recommended
This is useful in cases of a broken system
to install some functionality
Packages Updates
product - group of packages which are necessary to
Install New Recommended Packages
install a product
zypper list-updates
or
zypper lu
zypper install-new-recommends
or
zypper inr
zypper update
or
zypper up

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go