This commit is contained in:
Olga 2025-03-04 00:16:23 +08:00 committed by GitHub
commit 8010e00f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 2 deletions

View File

@ -155,6 +155,30 @@ upgrades were available. Use `pacman -Que` instead.
| yasu | `yay -Syu --no-confirm` | Same as `yaupg`, but without confirmation | | yasu | `yay -Syu --no-confirm` | Same as `yaupg`, but without confirmation |
| upgrade[¹](#f1) | `yay -Syu` | Sync with repositories before upgrading packages | | upgrade[¹](#f1) | `yay -Syu` | Sync with repositories before upgrading packages |
#### Paru
| Alias | Command | Description |
|----------|---------------------------------|-------------------------------------------------------------------|
| parclean | `paru -Sc` | Clean out old and unused caches and packages |
| parclr | `paru -Scc` | Remove all files from the cache |
| parin | `paru -S` | Install packages from the repositories |
| parins | `paru -U` | Install a package from a local file |
| parinsd | `paru -S --asdeps` | Install packages as dependencies of another package |
| parloc | `paru -Qi` | Display information about a package in the local database |
| parlocs | `paru -Qs` | Search for packages in the local database |
| parlst | `paru -Qe` | List installed packages including from AUR (tagged as "local") |
| parmir | `paru -Syy` | Force refresh of all package lists after updating mirrorlist |
| parorph | `paru -Qtd` | Remove orphans using paru |
| pare | `paru -R` | Remove packages, keeping its settings and dependencies |
| parem | `paru -Rns` | Remove packages, including its settings and unneeded dependencies |
| parep | `paru -Si` | Display information about a package in the repositories |
| pareps | `paru -Ss` | Search for packages in the repositories |
| parupd | `paru -Sy` | Update and refresh local package, ABS and AUR databases |
| parupg | `paru -Syu` | Sync with repositories before upgrading packages |
| parsu | `paru -Syu --no-confirm` | Same as `parupg`, but without confirmation |
| upgrade[¹](#f1) | `paru -Syu` | Sync with repositories before upgrading packages |
--- ---
<span id="f1">¹</span> <span id="f1">¹</span>

View File

@ -176,6 +176,26 @@ if (( $+commands[yay] )); then
alias yaupd="yay -Sy" alias yaupd="yay -Sy"
fi fi
if (( $+commands[paru] )); then
alias parclean='paru -Sc'
alias parclr='paru -Scc'
alias parupg='paru -Syu'
alias parsu='paru -Syu --noconfirm'
alias parin='paru -S'
alias parins='paru -U'
alias pare='paru -R'
alias parem='paru -Rns'
alias parep='paru -Si'
alias pareps='paru -Ss'
alias parloc='paru -Qi'
alias parlocs='paru -Qs'
alias parlst='paru -Qe'
alias parorph='paru -Qtd'
alias parinsd='paru -S --asdeps'
alias parmir='paru -Syy'
alias parupd="paru -Sy"
fi
# Check Arch Linux PGP Keyring before System Upgrade to prevent failure. # Check Arch Linux PGP Keyring before System Upgrade to prevent failure.
function upgrade() { function upgrade() {
echo ":: Checking Arch Linux PGP Keyring..." echo ":: Checking Arch Linux PGP Keyring..."
@ -189,7 +209,9 @@ function upgrade() {
echo " Arch Linux PGP Keyring is up to date." echo " Arch Linux PGP Keyring is up to date."
echo " Proceeding with full system upgrade." echo " Proceeding with full system upgrade."
fi fi
if (( $+commands[yay] )); then if (( $+commands[paru] )); then
paru -Syu
elif (( $+commands[yay] )); then
yay -Syu yay -Syu
elif (( $+commands[trizen] )); then elif (( $+commands[trizen] )); then
trizen -Syu trizen -Syu