replaced paru with pamac
This commit is contained in:
parent
2e4ec410a9
commit
05ee2545d1
1 changed files with 12 additions and 20 deletions
32
setup.sh
32
setup.sh
|
@ -56,30 +56,18 @@ smart_mkdir() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package_install() {
|
package_install() {
|
||||||
paru -S --noconfirm "$@"
|
pamac install --no-confirm "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
package_remove() {
|
package_remove() {
|
||||||
paru -R --noconfirm "$@"
|
pamac remove --no-confirm "$@"
|
||||||
}
|
|
||||||
|
|
||||||
install_paru() {
|
|
||||||
log "installing paru"
|
|
||||||
|
|
||||||
smart_mkdir "$SCRIPT_DIR/tmp"
|
|
||||||
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for paru installation" && exit 1)
|
|
||||||
sudo pacman --noconfirm -S --needed base-devel git
|
|
||||||
git clone https://aur.archlinux.org/paru-bin.git
|
|
||||||
cd ./paru-bin && makepkg -si
|
|
||||||
|
|
||||||
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing paru" && exit 1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_essentials() {
|
setup_essentials() {
|
||||||
# install paru if it does not exist
|
# install pamac if it does not exist
|
||||||
if ! command -v paru &> /dev/null; then
|
if ! command -v pamac &> /dev/null; then
|
||||||
log "paru was not installed already. Installing now..."
|
log "pamac was not installed already. Installing now..."
|
||||||
install_paru
|
setup_pamac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install dialog if it's not installed already
|
# install dialog if it's not installed already
|
||||||
|
@ -495,9 +483,13 @@ setup_pacman() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_pamac() {
|
setup_pamac() {
|
||||||
package_install \
|
smart_mkdir "$SCRIPT_DIR/tmp"
|
||||||
pamac_aur `# package manager GUI with AUR support` \
|
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for pamac installation" && exit 1)
|
||||||
|
sudo pacman --noconfirm -S --needed git
|
||||||
|
git clone https://aur.archlinux.org/pamac-aur.git
|
||||||
|
cd ./pamac-aur && makepkg -si
|
||||||
|
|
||||||
|
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing pamac" && exit 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_pavucontrol() {
|
setup_pavucontrol() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue