You are not logged in.
Pages: 1
I have a question as to how pacman deals with dependencies
let us suppose i install an application A with pacman -Sy A which has dependencies X Y and Z
Now I install another application B with dependencies M N and X
whan happens if I uninstall A with pacman -Rc A
would only Y and Z be uninstalled with A
and would M N X be unistalled if I uninstall B?
In in short would i be left with any of X Y Z M or N if i get rid of both A and B
I am a newbie so please dont be harsh if it is a stupid question
Acer Aspire V5-573P Antergos KDE
Offline
Pacman records the dependencies loaded and removes those it records when you remove the packages with the ....Rc command.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
You would have to do pacman -Rs in order to achieve the behavior you've described. -Rc would recursively "Remove all target packages, as well as all packages that depend on one or more target packages." The differences are pretty well described in the pacman man page.
Offline
well i read the man page and i am still unclear
so if i do a Rc on A after i have installed A and B, would it uninstall both A and B or just A.
and if I do Rs on A afer i have installed A and B would it remove A Y and Z but leave B X M and N?
Could anyone explain?
Acer Aspire V5-573P Antergos KDE
Offline
Let me rephrase your example:
A depends on Adep-1, Adep-2, ABdep.
B depends on Bdep-1, Bdep-2, ABdep.
You install A, then B.
pacman -Rs A will remove A, Adep-1, and Adep-2
pacman -Rc A will remove A.
pacman -Rs B will remove B, Bdep-1, and Bdep-2
pacman -Rc B will remove B.
Say you remove A. Then:
pacman -Rs B will remove B, Bdep-1, Bdep-2, and ABdep.
pacman -Rc B will still only remove B
Offline
Thank you very much, so I guess it is good to remove using Rs....is it?
Acer Aspire V5-573P Antergos KDE
Offline
Thank you very much, so I guess it is good to remove using Rs....is it?
pacman -Rs is what I usually do for removing packages. You can also check for orphans using pacman -Qe, by the way.
Offline
Just do pacman -Rsc, it'll usually be what you want.
I am a gated community.
Offline
I just noticed that now -Qe list orphans that were dependencies of old packages that have since been removed, when it used to list only explicitly installed packages that didn't have any 'required by' packages. Is there an easy way to find those old-style orphans anymore?
Last edited by elasticdog (2007-09-27 02:59:22)
Offline
I just noticed that now -Qe list orphans that were dependencies of old packages that have since been removed, when it used to list only explicitly installed packages that didn't have any 'required by' packages. Is there an easy way to find those old-style orphans anymore?
Since many users were not satisfied, I proposed a more powerful (and confusing?) set of options for 3.1, so that everyone could do what he likes :
http://bugs.archlinux.org/task/7343#comment17901
It's still not to late to complain/whine about them.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Just added a comment in support of your proposed changes in the bug-tracker. Looks like they've already been merged in for a future release, so thanks for getting the ball rolling shining! I'm looking forward to having those options be a lot more flexible in helping tracking down various types of packages. A clean system is a happy system
Offline
Just added a comment in support of your proposed changes in the bug-tracker. Looks like they've already been merged in for a future release, so thanks for getting the ball rolling shining! I'm looking forward to having those options be a lot more flexible in helping tracking down various types of packages. A clean system is a happy system
Indeed, this has already been merged in 3.1, but I didn't receive much feedbacks on pacman-dev ML and in this feature request.
I also mentioned it a few times on IRC, and a few users said they liked it, but I still had some doubts. So thanks for your positive comment
Anyway, even if some users realize when 3.1 is released that they strongly dislike these, I guess it should be easy to change it later in a minor release, like 3.1.1 or something.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
So then would it be true if you install all packages with -Sy and remove all packages with -Rsc you will have no orphan packages in your system?
Acer Aspire V5-573P Antergos KDE
Offline
So then would it be true if you install all packages with -Sy and remove all packages with -Rsc you will have no orphan packages in your system?
No, that's incorrect. See http://bugs.archlinux.org/task/5974
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Pages: 1