#bestlinuxcommunityever
silly newbie question here:
does yay have any options to clean up orphaned packages without resorting to pamac or other gui-based tools?
pacman
can do that of course. List orphans: pacman -Qdt
Remove them: sudo pacman -Rns $(pacman -Qdtq)
Other/additional options for the remove command could be used as well, like -Rnsc. Always check the output for what is going to be removed and be cautious.
yay can use the same options like pacman. So yay -Qdt
does the same for example.
I recommend using pacman
to uninstall packages, it can remove both packages from the official repos and foreign packages (including those from the AUR). There is no need to use yay
for things that pacman
can do.
The only exception where I use yay
for something that pacman
normally does is to update the system, because itâs less typing: just run yay
and it automatically updates the packages from the repos and the packages from the AUR.
Also, unless youâre running low on disk space, there is really no need to remove orphaned packages. Most of them are build dependencies and do not slow down your system in any way.
This is mostly good advice, but with a couple of bad ones thrown in. There was a topic about this video already, I recommend reading that topic:
do you refer to bleachbit?
thanks all!
Error while updating
~$ yay -Syu
:: Synchronizing package databasesâŠ
error: failed retrieving file âcore.dbâ from ind.mirror.pkgbuild.com : Could not resolve host: ind.mirror.pkgbuild.com
error: failed to update core (invalid url for server)
error: failed retrieving file âextra.dbâ from ind.mirror.pkgbuild.com : Could not resolve host: ind.mirror.pkgbuild.com
error: failed to update extra (invalid url for server)
error: failed retrieving file âcommunity.dbâ from ind.mirror.pkgbuild.com : Could not resolve host: ind.mirror.pkgbuild.com
error: failed to update community (invalid url for server)
error: failed retrieving file âmultilib.dbâ from ind.mirror.pkgbuild.com : Could not resolve host: ind.mirror.pkgbuild.com
error: failed to update multilib (invalid url for server)
endeavouros is up to date
error: failed to synchronize all databases
error installing repo packages
[ramesh@ramesh ~]$
Update your mirrors with the endeavor welcome application. Then run
sudo pacman -Syyu
It will force a full sync and you should be good.
Otherwise check your internet. Mine does that too occasionally if my internet isnât working well.
Edit: also yay
is the same as yay -Syu
I am hearing a lot about Indian mirrors not working well (or, often, at all). The suggestion is to select Worldwide as your âcountryâ entry (in reflector-simple - or from the Welcome app button), or perhaps rely on German mirrors for nowâŠ
Well said. One or other reasons, Indian mirrors are not working properly. As suggested by you, I have changed to Worldwide and Germany. Now updating my system. Thanks to both of you.
for india singapore does also good , i heard
Hi. Thank you very much for that! Iâm new to Endevour and new to arch based distro generally from about a day ago, I noticed that with command just yay, it also updates, is that different from yay - Syu or would that be same? And that would be the only update that I need to perform?
yay
and yay -Syu
are functionally the same. The only difference is the number of keys you have to press.
Thank you
I have used yay only as it feels simple. I must add Iâm new to Endevour and every arch based since like a day so I know very less. But is using yay or similar pacman commands enough to upgrade even when itâs major upgrades like get the desktop environment upgraded when itâs released new?
yay
will update the packages installed from the repos and the AUR, no matter what they are.
For more info, please see:
yay --help
man yay