Playing with aura, read the user guide, but cannot work out the equivalent command to:
sudo paccache -ruk0
Am I going blind
Playing with aura, read the user guide, but cannot work out the equivalent command to:
sudo paccache -ruk0
Am I going blind
Is it not just aura -Scc
?
https://fosskers.github.io/aura/pacman.html#clearing-your-package-cache
Whatβs the deal with aura?
Any benefits compared to pacman?
Itβs written in Haskell, separates repo and AUR, and does PKGBUILD parsing to check for obvious issues (e.g. dodgy Bash script behaviour). It looks pretty interesting.
It seems pretty good, it introduces the ability to roll-back an update.
https://fosskers.github.io/aura/introduction.html
Have logged an issue on the github for this, the only thing I have found is -Sc
but that wipes all but one package, I like to hold three in my cache (but it does remove the uninstalled packages)
Are you referring to this?
sudo paccache -rk0 β leaves no cache, leaves nothing, just the package you have now.
sudo paccache -rk1 β just leave one
sudo paccache -rk2 β only leaves two
As it says:
Completely wipes the cache
Wipes, leaves the most recent installed only
Wipes, leaves the two most recent installed of that package.
I run paccache
without sudo
and it works here. Something odd on my end?
You are right, it also works without sudo
$ paccache -rk0
==> finished: 202 packages removed (disk space saved: 642.67 MiB)
No!
Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N]
You sure?
sudo aura -Scc
Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N]
Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]
removing unused sync repositories...
-Scc appears to want to wipe the cacheβ¦
-Sc
wipes all but one.
Oh, wait, I misread u
as v
.
-u, --uninstalled target uninstalled packages.
-v, --verbose increase verbosity. specify up to 3 times.
So yes, theyβre different thingsβ¦
I think we are at cross-purposes you were talking about paccache, I was talking about aura.
This is my script so far:
#!/bin/bash
colour="underline"
boxp "Updating Mirrors" 1 $colour
boxp "Finding fastest Arch mirror......." 1 $colour
sudo reflector --verbose --latest 40 --sort rate --save /etc/pacman.d/mirrorlist &> /dev/null
echo "Done."
file="$HOME/.up.txt"
date=~/.updates/$(date +%Y-%m-%dT%H:%M)
sudo aura -Syy
checkupdates > ~/.up.txt
minimumsize=1
actualsize=$(wc -c <"$file")
boxp "Repos & AUR" 1 $colour
sudo aura -Syu --noconfirm
sudo aura -Auax --noconfirm
if [ $actualsize -ge $minimumsize ]; then
cp $file $date
else
echo size is under $minimumsize bytes
fi
boxp "Clearing Cache" 1 $colour
sudo aura -Cc 3 --noconfirm
sudo paccache -ruk0
boxp "Clear saved states - leave 5." 1 $colour
sudo aura -Bc 5 --noconfirm
#βββββββββββ
#β Orphans β
#βββββββββββ
boxp "Orphans" 1 $colour
sudo aura -Oj --noconfirm
boxp "Finished" 1 $colour
boxp is my python script to draw boxes around strings.
Had a reply on GitHub, this feature is not available
But the Dev likes the idea⦠Watch this space " "