mirror of
https://github.com/hak8or/proxmox_scripts.git
synced 2025-01-15 11:57:57 +00:00
Seperate updating and installing (no reinstall) packages
This commit is contained in:
parent
df0adfea52
commit
6c3ce20af6
@ -55,20 +55,24 @@ cat <<- 'EOM05594313219813' > /etc/pacman.d/mirrorlist
|
|||||||
Server = http://mirror.math.princeton.edu/pub/archlinux/$repo/os/$arch
|
Server = http://mirror.math.princeton.edu/pub/archlinux/$repo/os/$arch
|
||||||
EOM05594313219813
|
EOM05594313219813
|
||||||
|
|
||||||
# Do an update and install some packages.
|
# Update as needed.
|
||||||
echo "$TAGSTR Updating and installing base-devel, git, htop, vim, and cowsay"
|
echo "$TAGSTR Updating all packages as needed"
|
||||||
pacman -Syu base-devel git htop vim cowsay --noconfirm > $LOGFILE 2>&1
|
pacman -Syu --noconfirm > $LOGFILE 2>&1
|
||||||
|
|
||||||
# Disable root check for makepkg since we are using root for everything.
|
# Do an update and install some packages.
|
||||||
# Replace the "if (( EUID == 0 )); then" with "if (( 0 )); then" to force root
|
echo "$TAGSTR Installing base-devel, git, htop, vim, rsync, and cowsay"
|
||||||
# check to always fail.
|
pacman -Syu base-devel git htop vim cowsay rsync --noconfirm --needed > $LOGFILE 2>&1
|
||||||
sed -i 's/if (( EUID == 0 )); then/if (( 0 )); then/' /usr/bin/makepkg > $LOGFILE 2>&1
|
|
||||||
|
|
||||||
# Install Yaourt. Why yaourt instead of pacaur? Because pacaur doesn't allow
|
# Install Yaourt. Why yaourt instead of pacaur? Because pacaur doesn't allow
|
||||||
# itself to be ran as root, even though all we have is root in the container,
|
# itself to be ran as root, even though all we have is root in the container,
|
||||||
# and I don't want to bother fiddling with users just for this. Yaourt on the
|
# and I don't want to bother fiddling with users just for this. Yaourt on the
|
||||||
# other hand works fine for this.
|
# other hand works fine for this.
|
||||||
if ! type yaourt &> /dev/null; then
|
if ! type yaourt &> /dev/null; then
|
||||||
|
# Disable root check for makepkg since we are using root for everything.
|
||||||
|
# Replace the "if (( EUID == 0 )); then" with "if (( 0 )); then" to force root
|
||||||
|
# check to always fail.
|
||||||
|
sed -i 's/if (( EUID == 0 )); then/if (( 0 )); then/' /usr/bin/makepkg > $LOGFILE 2>&1
|
||||||
|
|
||||||
echo "$TAGSTR Installing package-query and yaourt"
|
echo "$TAGSTR Installing package-query and yaourt"
|
||||||
mkdir ~/tmp
|
mkdir ~/tmp
|
||||||
cd ~/tmp
|
cd ~/tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user