Back to Ohmyzsh

suse

plugins/suse/README.md

latest6.0 KB
Original Source

suse

Aliases for Zypper according to the official Zypper's alias

To use it add suse to the plugins array in you zshrc file.

zsh
plugins=(... suse)

Maintainer: r-darwish

Main commands

AliasCommandsDescription
zsudo zyppercall zypper
zhzypper -hprint help
zhsezypper -h seprint help for the search command
zlicenseszypper licensesprints a report about licenses and EULAs of installed packages
zpssudo zypper pslist process using deleted files
zshellsudo zypper shellopen a zypper shell session
zsource-downloadsudo zypper source-downloaddownload source rpms for all installed packages
ztoszypper tosshows the ID string of the target operating system
zvcmpzypper vcmptell whether version1 is older or newer than version2

Packages commands

AliasCommandsDescription
zinsudo zypper ininstall packages
zinrsudo zypper inrinstall newly added packages recommended by already installed ones
zrmsudo zypper rmremove packages
zsisudo zypper siinstall source of a package
zvesudo zypper veverify dependencies of installed packages

Updates commands

AliasCommandsDescription
zdupsudo zypper dupupgrade packages
zlpzypper lplist necessary patches
zluzypper lulist updates
zpchksudo zypper pchkcheck for patches
zupsudo zypper upupdate packages
zpatchsudo zypper patchinstall patches

Request commands

AliasCommandsDescription
zifzypper ifdisplay info about packages
zpazypper palist packages
zpatch-infozypper patch-infodisplay info about patches
zpattern-infozypper pattern-infodisplay info about patterns
zproduct-infozypper product-infodisplay info about products
zpchzypper pchlist all patches
zpdzypper pdlist products
zptzypper ptlist patterns
zsezypper sesearch for packages
zwpzypper wplist all packages providing the specified capability

NOTE: --no-refresh is passed to zypper for speeding up the calls and avoid errors due to lack of root privileges. If you need to refresh the repositories, call sudo zypper ref (zref alias) before running these aliases.

Related: #9798.

Repositories commands

AliasCommandsDescription
zarsudo zypper aradd a repository
zclsudo zypper cleanclean cache
zlrzypper lrlist repositories
zmrsudo zypper mrmodify repositories
znrsudo zypper nrrename repositories (for the alias only)
zrefsudo zypper refrefresh repositories
zrrsudo zypper rrremove repositories

Services commands

AliasCommandsDescription
zassudo zypper asadds a service specified by URI to the system
zmssudo zypper msmodify properties of specified services
zrefssudo zypper refsrefreshing a service mean executing the service's special task
zrssudo zypper rsremove specified repository index service from the system
zlszypper lslist services defined on the system

Package Locks Management commands

AliasCommandsDescription
zalsudo zypper aladd a package lock
zclsudo zypper clremove unused locks
zllzypper lllist currently active package locks
zrlsudo zypper rlremove specified package lock