DNF configs
- More flexibility in package manager abbrevs
This commit is contained in:
parent
c6ed25df84
commit
6e7d8d77ca
@ -1,45 +1,47 @@
|
||||
# Common package management
|
||||
#------------------------------------------------------
|
||||
|
||||
# Install / remove
|
||||
abbr inst "sudo apt install -y"
|
||||
abbr uinst "sudo apt remove"
|
||||
abbr pkgrm "sudo apt remove"
|
||||
abbr purge "sudo apt purge"
|
||||
abbr inst "sudo apt install -y"
|
||||
abbr uinst "sudo apt remove"
|
||||
abbr pkgrm "sudo apt remove"
|
||||
abbr purge "sudo apt purge"
|
||||
|
||||
# Upgrade / maintenance
|
||||
abbr upgr "sudo apt update && sudo apt full-upgrade -y"
|
||||
abbr autoremove "sudo apt autoremove -y"
|
||||
abbr pkgclean "sudo apt clean"
|
||||
abbr upgr "sudo apt update && sudo apt full-upgrade -y"
|
||||
abbr autoremove "sudo apt autoremove -y"
|
||||
abbr pkgclean "sudo apt clean"
|
||||
|
||||
# Search / information
|
||||
abbr pkgsh "apt search"
|
||||
abbr pkginfo "apt show"
|
||||
abbr pkgls "apt list --installed"
|
||||
|
||||
# APT-specific
|
||||
abbr pkgsh "apt search"
|
||||
abbr pkginfo "apt show"
|
||||
abbr pkgls "apt list --installed"
|
||||
|
||||
# Package relationships
|
||||
abbr pkgdep "apt-cache depends"
|
||||
abbr pkgrdep "apt-cache rdepends"
|
||||
|
||||
# Package policy / versions
|
||||
abbr pkgpolicy "apt-cache policy"
|
||||
abbr pkgmadison "apt-cache madison"
|
||||
abbr pkgdep "apt-cache depends"
|
||||
abbr pkgrdep "apt-cache rdepends"
|
||||
|
||||
# Package ownership / files
|
||||
abbr pkgfiles "apt-file list"
|
||||
abbr pkgowner "dpkg -S"
|
||||
abbr pkgfiles "apt-file list"
|
||||
abbr pkgowner "dpkg -S"
|
||||
|
||||
# Installed package information
|
||||
abbr pkgstatus "dpkg -s"
|
||||
abbr pkgverify "debsums"
|
||||
abbr pkgstatus "dpkg -s"
|
||||
abbr pkgverify "debsums"
|
||||
|
||||
# APT-specific
|
||||
#------------------------------------------------------
|
||||
|
||||
# Package policy / versions
|
||||
abbr pkgpolicy "apt-cache policy"
|
||||
abbr pkgmadison "apt-cache madison"
|
||||
|
||||
# Package database
|
||||
abbr pkgreset "sudo dpkg-reconfigure"
|
||||
abbr pkgreset "sudo dpkg-reconfigure"
|
||||
|
||||
# Repository management
|
||||
abbr pkgsrc "sudo apt edit-sources"
|
||||
abbr pkgsrc "sudo apt edit-sources"
|
||||
|
||||
# Package contents
|
||||
abbr pkgextract "dpkg-deb -x"
|
||||
abbr pkgcontents "dpkg-deb -c"
|
||||
# Package archive inspection
|
||||
abbr pkgextract "dpkg-deb -x"
|
||||
abbr pkgcontents "dpkg-deb -c"
|
||||
1
pkg/dnf/01_aliases.fish
Normal file
1
pkg/dnf/01_aliases.fish
Normal file
@ -0,0 +1 @@
|
||||
# DNF Aliases
|
||||
43
pkg/dnf/02_abbreviations.fish
Normal file
43
pkg/dnf/02_abbreviations.fish
Normal file
@ -0,0 +1,43 @@
|
||||
# Common package management
|
||||
#------------------------------------------------------
|
||||
|
||||
# Install / remove
|
||||
abbr inst "sudo dnf install -y"
|
||||
abbr uinst "sudo dnf remove"
|
||||
abbr pkgrm "sudo dnf remove"
|
||||
abbr purge "sudo dnf remove"
|
||||
|
||||
# Upgrade / maintenance
|
||||
abbr upgr "sudo dnf upgrade -y"
|
||||
abbr autoremove "sudo dnf autoremove -y"
|
||||
abbr pkgclean "sudo dnf clean all"
|
||||
|
||||
# Search / information
|
||||
abbr pkgsh "dnf search"
|
||||
abbr pkginfo "dnf info"
|
||||
abbr pkgls "dnf list installed"
|
||||
|
||||
# Package relationships
|
||||
abbr pkgdep "dnf repoquery --requires"
|
||||
abbr pkgrdep "dnf repoquery --whatrequires"
|
||||
|
||||
# Package ownership / files
|
||||
abbr pkgfiles "dnf repoquery --list"
|
||||
abbr pkgowner "dnf provides"
|
||||
|
||||
# Installed package information
|
||||
abbr pkgstatus "rpm -qi"
|
||||
abbr pkgverify "rpm -V"
|
||||
|
||||
# DNF-specific
|
||||
#------------------------------------------------------
|
||||
|
||||
# Package groups
|
||||
abbr pkggroups "dnf group list"
|
||||
|
||||
# Repository management
|
||||
abbr pkgrepols "dnf repolist"
|
||||
abbr pkgrepoinfo "dnf repoinfo"
|
||||
|
||||
# Transaction history
|
||||
abbr pkghistory "dnf history"
|
||||
13
pkg/dnf/functions/updt.fish
Normal file
13
pkg/dnf/functions/updt.fish
Normal file
@ -0,0 +1,13 @@
|
||||
function updt \
|
||||
--description "Update the system"
|
||||
|
||||
sudo dnf upgrade -y
|
||||
or return
|
||||
|
||||
sudo dnf autoremove -y
|
||||
|
||||
sudo dnf clean all
|
||||
|
||||
updt_helpers
|
||||
updt_languages
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user