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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue