If you donât specify the exact number, it falls back to the âcore.abbrevâ config, which itself falls back to âautoâ if not specified:
âIf unspecified or set to âautoâ, an appropriate value is computed based on the approximate number of packed objects in your repository, which hopefully is enough for abbreviated object names to stay unique for some time.â
Oh I was not trying to say it needed to be changed.
I really pulled up a quick diff of my local PKGBUILD and noted it was very very close save those few things. Well those and I have an else in the package function that should normally be superfluous anyways;
cd "${pkgname%-git}" || exit 1
It is definitely fine.
I dont think I have any reason to take it over.
Trustwise, I would welcome it. Not saying that @cyb3rko is not trustworthy, far from it, but having the AUR package from the same person that wrote the script would surely have a nice touch.
Clean $HOME cache of files not accessed for 2 weeks (y/N)? y
Done
Recovered 22MiB
Clean thumbnail cache of files not accessed for 2 weeks (y/N)?
Skipped
Clean up ALL existing coredumps of crashes (y/N)? y
[sudo] password for root:
Done
Recovered 4MiB
Clean up ALL Flatpak application data (y/N)? y
Done
Recovered 561B
Clean AUR Helper cache of ALL diff and package build files (y/N)? y
Done
Recovered 57MiB
Clean cache of uninstalled packages and unused repositories (y/N)? y
Done
Recovered 2.94GiB
Clean out pacman sandbox and interrupted download directories (y/N)? y
The following will be deleted:
/var/cache/pacman/pkg/download-sBCAkO
/var/cache/pacman/pkg/download-zYlW8U
/var/cache/pacman/pkg/download-nZ2KJg
Continue with removal (y/N)? y
Done
Recovered 0B
sorry for this question but how to use this? in the readme it said to run the script, but how to its not written. like i need to paste code in the terminal and it starts cleaning?
Honestly speaking if you donât understand ârun the scriptâ you should definitely not be pasting code in the terminal and probably should be using an immutable distro that does everything via GUI.
If you arenât comfortable running a shell script you probably shouldnât be trying to âcleanâ your system. You need to understand the basics first.
system cleaning is a relatively low-priority thing. âmost everything thatâs cleaned is just sitting there taking up space but not really doing much else. Itâs worthwhile to gain the space, but not critical
There are step-by-step directions given on the gitlab page that you donât even reference with your question - none of which include âpasting into the terminalâ
Part of learning is being willing to access and read documentation when provided. If youâre not willing/able to do that then youâre going to continue running into roadbumps on an Arch-based distro - because the OS at its core expects some amount of personal investment and involvement in managing corner cases and updates. Part of that expectation is to be able to understand and follow well-written documentation.
If thatâs not where youâre at personally then the biggest benefits of the Arch ecosystem - great technical documentation and a transparent package system - arenât positives for you (and are even negatives - with transparency comes responsibility). Youâre likely to break something that you havenât developed the skills and aptitude to fix - even if itâs a simple fix.
If you want to be happy using an Arch-derived platform you need to develop the skill of reading and applying documentation to a functional level. That doesnât mean you need to become a Linux guru overnight, but you do need to get comfortable with ârun this script and answer its promptsâ documentation (and more) sooner rather than later.
You would 1. Download the script, 2. Mark it executable, and 3. Run the script that is in the same location your cursor is by using ./maclean.
( Note that . is both shorthand for âcurrent locationâ in the same way ~ is for $HOME. And in shells like bash . is also aliased to source, ie; . bashrc. )
Similarly, as with the majority of utilities, the help flag can be used (or viewed at the page) for how to use including options and explanations. ex;
./maclean -h
As with examples like this the syntax is shown.
If the script is in $PATH, such as when it is installed, then only the name need be used and can be executed from anywhere, ex;
maclean
In case part of what is being missed has to do with it - the script does not require any options. You can just run maclean. The options are well, optional, in order to perform specific functions.
PS.
I had been putting off posting here because I got entangled refactoring large portions of the script when intending to just add docker support. I did that too and I am almost done. Just not quite yet. Update soon though.