Switch from yay to paru
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
df560bb45a
commit
1ba6c9ffdd
7 changed files with 23 additions and 15 deletions
|
@ -11,15 +11,15 @@
|
|||
|
||||
output::section "Arch Packages"
|
||||
|
||||
# List created using: yay -Qqen > packages.native.list
|
||||
# List created using: paru -Qqen > packages.native.list
|
||||
if output::prompt "Do you want to install Arch packages?"; then
|
||||
output::log "Updating package database"
|
||||
yay -Syy |& output::debug
|
||||
paru -Syy |& output::debug
|
||||
output::success "Package database successfully updated"
|
||||
|
||||
package_count=$(< "${INSTALL_DIR}/packages/packages.native.list" wc -l)
|
||||
output::log "Installing ${package_count} packages"
|
||||
yay -S \
|
||||
paru -S \
|
||||
--asexplicit \
|
||||
--noconfirm \
|
||||
--sudoloop \
|
||||
|
|
|
@ -11,15 +11,15 @@
|
|||
|
||||
output::section "AUR Packages"
|
||||
|
||||
# List created using: yay -Qqem > packages.aur.list
|
||||
# List created using: paru -Qqem > packages.aur.list
|
||||
if output::prompt "Do you want to install AUR packages?"; then
|
||||
output::log "Updating package database"
|
||||
yay -Syy |& output::debug
|
||||
paru -Syy |& output::debug
|
||||
output::success "Package database successfully updated"
|
||||
|
||||
package_count=$(< "${INSTALL_DIR}/packages/packages.aur.list" wc -l)
|
||||
output::log "Installing ${package_count} packages. This may take a few hours"
|
||||
yay -S \
|
||||
paru -S \
|
||||
--asexplicit \
|
||||
--noconfirm \
|
||||
--sudoloop \
|
||||
|
|
|
@ -15,18 +15,18 @@ output::log "Installing requirements for install script"
|
|||
sudo pacman -S sudo ccache git base-devel --noconfirm --needed |& output::debug
|
||||
output::success "Requirements successfully installed"
|
||||
|
||||
is_yay_installed=$(command -v yay)
|
||||
output::log "Installing yay"
|
||||
if [ -z "${is_yay_installed}" ]; then
|
||||
is_paru_installed=$(command -v paru)
|
||||
output::log "Installing paru"
|
||||
if [ -z "${is_paru_installed}" ]; then
|
||||
TMP_DIR=$(mktemp -d)
|
||||
git clone https://aur.archlinux.org/yay.git "${TMP_DIR}" |& output::debug
|
||||
git clone https://aur.archlinux.org/paru.git "${TMP_DIR}" |& output::debug
|
||||
|
||||
(
|
||||
cd "${TMP_DIR}"|| exit
|
||||
makepkg -si --noconfirm --skippgpcheck |& output::debug
|
||||
)
|
||||
|
||||
output::success "yay installed"
|
||||
output::success "paru installed"
|
||||
else
|
||||
output::success "Yay is already installed"
|
||||
output::success "paru is already installed"
|
||||
fi
|
|
@ -35,6 +35,7 @@ CONFIG_LINKED_FILES_HOME=(
|
|||
".config/npm"
|
||||
".config/octave"
|
||||
".config/pacman"
|
||||
".config/paru"
|
||||
".config/polybar"
|
||||
".config/python"
|
||||
".config/redshift"
|
||||
|
|
7
system/.config/paru/paru.conf
Normal file
7
system/.config/paru/paru.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
[options]
|
||||
NewsOnUpgrade
|
||||
Devel
|
||||
SudoLoop
|
||||
UpgradeMenu
|
||||
RemoveMake
|
||||
NoCheck
|
|
@ -12,6 +12,6 @@
|
|||
# USAGE:
|
||||
# ./update-count
|
||||
UPDATES=$(checkupdates | wc -l)
|
||||
AUR_UPDATES=$(yay -Qua --devel 2>&1 | wc -l)
|
||||
AUR_UPDATES=$(paru -Qua --devel 2>&1 | wc -l)
|
||||
|
||||
echo "${UPDATES} / ${AUR_UPDATES}"
|
|
@ -14,8 +14,8 @@
|
|||
. utils
|
||||
|
||||
print_section "Remove unneeded dependencies"
|
||||
mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq)
|
||||
yay -Rsnu "${UNNEEDED_DEPENDENCIES[@]}"
|
||||
mapfile -t UNNEEDED_DEPENDENCIES < <(paru -Qdtq)
|
||||
paru -Rsnu "${UNNEEDED_DEPENDENCIES[@]}"
|
||||
|
||||
print_section "Cleaning files in ${YELLOW}/var/cache/pacman/pkg/${RESET}"
|
||||
paccache -rk 1 -c "/var/cache/pacman/pkg/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue