Compare commits
No commits in common. "9367fef8e91ebc59bac133abd71dffb1992dee4a" and "6e15459973ba3d0dcc1e3b76a337f4114bd73073" have entirely different histories.
9367fef8e9
...
6e15459973
3 changed files with 21 additions and 2 deletions
8
share/updateall/commands.d/npm
Normal file
8
share/updateall/commands.d/npm
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Moving to /tmp folder
|
||||||
|
#pushd /tmp > /dev/null
|
||||||
|
|
||||||
|
# Updating
|
||||||
|
sudo npm -g update
|
||||||
|
|
||||||
|
# Returning to previous directory
|
||||||
|
#popd > /dev/null
|
11
share/updateall/commands.d/pacman
Normal file
11
share/updateall/commands.d/pacman
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Gathering orphaned packages list
|
||||||
|
echo "Gathering orphaned packages list..."
|
||||||
|
orphaned_packages="$(pacman -Qtdq)"
|
||||||
|
|
||||||
|
if [[ ! -z $orphaned_packages ]]; then
|
||||||
|
echo "$orphaned_packages" | sudo pacman -Rns -
|
||||||
|
else
|
||||||
|
echo "No package to be removed."
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset orphaned_packages
|
|
@ -1,2 +1,2 @@
|
||||||
yay -Fy
|
# Updating
|
||||||
yay
|
yay -Syu
|
||||||
|
|
Loading…
Reference in a new issue