56 lines
1.4 KiB
Fish
56 lines
1.4 KiB
Fish
# Common package management
|
|
#------------------------------------------------------
|
|
|
|
# Install / remove
|
|
abbr inst "sudo zypper install -y"
|
|
abbr uinst "sudo zypper remove"
|
|
abbr pkgrm "sudo zypper remove"
|
|
abbr purge "sudo zypper remove --clean-deps"
|
|
|
|
# Upgrade / maintenance
|
|
abbr upgr "sudo zypper refresh && sudo zypper update -y"
|
|
abbr autoremove "sudo zypper packages --orphaned"
|
|
abbr pkgclean "sudo zypper clean --all"
|
|
|
|
# Search / information
|
|
abbr pkgsh "zypper search"
|
|
abbr pkginfo "zypper info"
|
|
abbr pkgls "zypper search --installed-only"
|
|
|
|
# Package relationships
|
|
abbr pkgdep "zypper info --requires"
|
|
abbr pkgrdep "zypper what-provides"
|
|
|
|
# Package ownership / files
|
|
abbr pkgfiles "rpm -ql"
|
|
abbr pkgowner "rpm -qf"
|
|
|
|
# Installed package information
|
|
abbr pkgstatus "rpm -qi"
|
|
abbr pkgverify "rpm -V"
|
|
|
|
# Zypper-specific
|
|
#------------------------------------------------------
|
|
|
|
# Repository management
|
|
abbr pkgrepols "zypper repos"
|
|
abbr pkgrepoinfo "zypper lr -d"
|
|
|
|
# Services
|
|
abbr pkgservices "zypper services"
|
|
|
|
# Patches
|
|
abbr pkgpatches "zypper patches"
|
|
abbr pkgpatch "sudo zypper patch"
|
|
|
|
# Package locks
|
|
abbr pkglocks "zypper locks"
|
|
|
|
# Package verification
|
|
abbr pkgcheck "zypper verify"
|
|
|
|
# Distribution upgrade
|
|
abbr pkgdup "sudo zypper dup -y"
|
|
|
|
# Refresh metadata
|
|
abbr pkgrefresh "sudo zypper refresh" |