Zypper Cheat Sheet

ADVERTISEMENT

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

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go