Yeah, sure, but it seems i missunderstand -c than if its true that -Rns is enough for what i want to do.
I must do further investigation into it.
Yeah, sure, but it seems i missunderstand -c than if its true that -Rns is enough for what i want to do.
I must do further investigation into it.
Same install? You’re extremely lucky to have never had any problems with it in decades.
As @Shjim said, do as you want, I just wanted to heed the warning of the cascade. It can turn into a landslide pretty quick.
To be fair, no matter whether you use -Rns or -Rc or even -Rcns, you are always presented with the list of packages that would be removed if you answer y
. If you always carefully review that list and do not automatically press y
, there should be no problem with removing too much.
And if you do remove packages which you did not intend to remove, the record of everything is stored in /var/log/pacman.log
so it’s easy to identify and reinstall any missing packages. And chances are they are still in your pacman cache, so even if your network connection breaks, you’ll be fine.
My point: it doesn’t really matter what pacman options you use to uninstall things, if you understand what they do and use common sense. Sometimes one option is more convenient than the other.
Mostly.
Can i somehow provoke this? Just for learning purpose
Sure. Find an optional dependancy of like dolphin or something, and then see the difference with and without the -c. As you go about things - compare the two before deleting. Sometimes they will be the same, others not so much.
Try this: Type in sudo pacman -Rns baloo
.
See the output? pacman knows better than to let you do that.
Now type sudo pacman -Rcns baloo
. See the difference?
You would remove dolphin
and, more importantly, plasma-desktop
.
BE CAREFUL - HIT N. Don’t press Enter!!!
OF COURSE I HIT Y!!! YOLO!
Thats why i have https://github.com/solisinvictum/borgrestore
Just kiddin. Dont worry
Edit:
But i see what it means @Stagger_Lee
But to be honest, i never came up with the idea to remove “deeper intalled” packages like that. I only used this on packages i installed by my self directly. like if i intalled mc. then use it for whatever i need to use it. and after a few days or what ever remove it again with pacman -Rcsn and i know it would only remove mc.
OK, I am going to be a bit counter to some of the other posters here and say there is nothing wrong with using the cascade option. People tend to overreact to it because of how strongly worded the man page is. However, the reality is that the package managers for every other major Linux distro use this behaviour by default including apt, dnf and zypper among others.
Personally, I use this option whenever I remove packages.
That being said, combining cascade(-Rc
) with recursive (-Rs
) is definitely an aggressive action that needs some care. However, this is mostly because of the way the recursive option works.
To me, this is the most important part. Always review the list before removing packages.
I did the same as OP but with XFCE as a desktop manager. Firefox icon still shows up on Endeavouros_Cassini_Nova-03-2023_R2 release.
only icon or is firefox actually installed? as this issue was fixed for a long time already…
The icon in the panel is part of the default install with firefox, itb is only an icon you can remove or change by right clicking on in.
We do not automate setting differnt browsers as default…
–closing–
-unrelated
open a new thread if there are more questions about the issue.