Little things the ex-Manjaro user needs to know :D

For me it’s snapd first, then steam, then pamac.

Unlike the other two, Pamac is really not that bad, I feel no hatred towards it, I just don’t need it.

2 Likes

From man pacman:

REMOVE OPTIONS (APPLY TO -R)
-c, --cascade
Remove all target packages, as well as all packages that depend on one or more target packages. This operation is recursive and must be used with care, since it can remove many potentially needed packages.

I wouldn’t use -c with pamac though, since it has dependencies that pacman also needs.

Steam, yes! Priorities. :video_game:

2 Likes

The n does the same thing in both cases, removes config files that would otherwise be saved so for simplicities sake I will exclude that from the examples.

-R removes a package and if there is a dependency problem it just stops.
-Rs removed a package and it’s dependencies, recursively. If the thing you are trying to remove is required by something else, it throws an error.
-Rc removes a package. If dependencies get in the way, it removes those as well.
-Rcs is the same as -Rc except it does so recursively.

Combining -Rc and -Rs is somewhat dangerous as it will go fully down the dependency tree and then aggressively cascade back up. I only use that when I really want to rip and tear and am willing to accept some collateral damage such as when removing an entire DE and not wanting to leave any remnants behind.

-Rc without the s is pretty much what almost every non Arch-based distro does by default when you remove a package.

As long as you don’t combine it with s it shouldn’t be an issue.

3 Likes

I meant it in this context:

It seems to me pacman -Rcns pamac would remove more than desired.

In that, specific case it would likely be mostly OK.

Actually, lets see an example from one of my VMs. Here is both.
[dalto@manjaro-kde ~]$ yay -Rsc pamac-common
checking dependencies...
:: manjaro-hello optionally requires manjaro-application-utility: GUI for selecting common applications for installation or removal
:: udiskie optionally requires libappindicator-gtk3: --appindicator support

Packages (13) appstream-glib-0.7.17-1  archlinux-appstream-data-20200612-1.1  flatpak-1.7.2-1  libappindicator-gtk3-12.10.0-14  libindicator-gtk3-12.10.1-9  manjaro-application-utility-1.3.2-2  ostree-2020.3-2  pamac-cli-9.5.6-1  pamac-flatpak-plugin-9.5.6-1  pamac-gtk-9.5.6-1
              pamac-snap-plugin-9.5.6-1  pamac-tray-appindicator-9.5.6-1  pamac-common-9.5.6-1

Total Removed Size:  38.06 MiB

:: Do you want to remove these packages? [Y/n] n
[dalto@manjaro-kde ~]$ yay -Rs pamac-common
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing pamac-common breaks dependency 'pamac-common' required by pamac-cli

The thing it takes with it that you might not like is flatpak. If you just use -Rc it would take all the pamac stuff but leave flatpak behind.

I use -Rc 99% of the time. I also read the list of packages it is about to remove before hitting “Y”. :wink:

Thanks @dalto, @Kresimir , I made a note of it. Up to now, I always used -Rns for an intentional residue-free deinstallation, so is that enough if you don’t want to provoke any damage?

It is what most people use. There is really no right or wrong answer.

In my opinion, it’s better to end up with a couple of orphaned packages on your system, which you can manually remove, than to remove more than you wanted. Though, sometimes you want to be thorough.

In any case, pactree is a great utility that lets you know exactly what depends on what.

2 Likes

Thanks, I’ll have to make do with that :slight_smile:

1 Like

so it is

Anyway, I’m learning to get along better without Pamac :wink:

Edit: after a week with Arch / EndeavorOS I would not voluntarily return to M… go!

2 Likes

With this thread, and some other more recent ones on the same ‘updating’ topic, if I was a new user scanning over the various (hundreds) options on how to update, I would be like… :flushed: :thinking: :confounded: :crazy_face: :anguished: :cold_sweat: :exploding_head:

:laughing:

5 Likes

5 posts were split to a new topic: Welcome @lizziAS

A post was merged into an existing topic: Welcome @lizziAS

I actually like pamac, it just has a problem with the connection for me frequently on every distro

It will often either be really slow, or just stop completely in the middle of updates

man pacman says ‘-c’ is cascade , ‘-s’ recursive , ‘-u’ unneeded , ‘-n’ nosave

So I use -Rs default , if not works -Rsu

Also pamac is great for removing packages :grin:
I use it for batch removing

By default, what pamac does is equivalent to -Rc

Make sure if you are using Pamac that you set the preferences for maximum parallel downloads to 0.

1 Like

I’ve forgotten already myself

1 Like