Pacman support
This commit is contained in:
parent
6e7d8d77ca
commit
19e9b02822
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
# Supported:
|
# Supported:
|
||||||
# ☑ apt
|
# ☑ apt
|
||||||
# ☐ dnf
|
# ☑ dnf
|
||||||
# ☐ pacman
|
# ☑ pacman
|
||||||
# ☐ zypper
|
# ☐ zypper
|
||||||
# ☐ apk
|
# ☐ apk
|
||||||
# ☐ xbps
|
# ☐ xbps
|
||||||
|
|||||||
1
pkg/pacman/01_aliases.fish
Normal file
1
pkg/pacman/01_aliases.fish
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Pacman aliases
|
||||||
49
pkg/pacman/02_abbreviations.fish
Normal file
49
pkg/pacman/02_abbreviations.fish
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# Common package management
|
||||||
|
#------------------------------------------------------
|
||||||
|
|
||||||
|
# Install / remove
|
||||||
|
abbr inst "sudo pacman -S"
|
||||||
|
abbr uinst "sudo pacman -R"
|
||||||
|
abbr pkgrm "sudo pacman -R"
|
||||||
|
abbr purge "sudo pacman -Rns"
|
||||||
|
|
||||||
|
# Upgrade / maintenance
|
||||||
|
abbr upgr "sudo pacman -Syu"
|
||||||
|
abbr pkgclean "sudo pacman -Sc"
|
||||||
|
|
||||||
|
# No direct equivalent to apt/dnf autoremove.
|
||||||
|
|
||||||
|
# Search / information
|
||||||
|
abbr pkgsh "pacman -Ss"
|
||||||
|
abbr pkginfo "pacman -Si"
|
||||||
|
abbr pkgls "pacman -Q"
|
||||||
|
|
||||||
|
# Package relationships
|
||||||
|
abbr pkgdep "pactree"
|
||||||
|
abbr pkgrdep "pactree -r"
|
||||||
|
|
||||||
|
# Package ownership / files
|
||||||
|
abbr pkgfiles "pacman -Ql"
|
||||||
|
abbr pkgowner "pacman -Qo"
|
||||||
|
|
||||||
|
# Installed package information
|
||||||
|
abbr pkgstatus "pacman -Qi"
|
||||||
|
abbr pkgverify "pacman -Qk"
|
||||||
|
|
||||||
|
# Pacman-specific
|
||||||
|
#------------------------------------------------------
|
||||||
|
|
||||||
|
# Orphan packages
|
||||||
|
abbr pkgorphans "pacman -Qdt"
|
||||||
|
|
||||||
|
# Package database
|
||||||
|
abbr pkgrefresh "sudo pacman -Fy"
|
||||||
|
|
||||||
|
# File database search
|
||||||
|
abbr pkgfile "pacman -F"
|
||||||
|
|
||||||
|
# Package database synchronization
|
||||||
|
abbr pkgsync "sudo pacman -Sy"
|
||||||
|
|
||||||
|
# Package cache
|
||||||
|
abbr pkgcache "paccache"
|
||||||
11
pkg/pacman/functions/updt.fish
Normal file
11
pkg/pacman/functions/updt.fish
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
function updt \
|
||||||
|
--description "Update the system"
|
||||||
|
|
||||||
|
sudo pacman -Syu --noconfirm
|
||||||
|
or return
|
||||||
|
|
||||||
|
sudo pacman -Sc --noconfirm
|
||||||
|
|
||||||
|
updt_helpers
|
||||||
|
updt_languages
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user