Dependencies

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Dependencies

Postby lloyd » Dec 22nd, '20, 14:25

I have a question about dependencies...
When you install a program, you get a list of needed dependencies. They get installed automatically, which is good. But what happens when you go to UN-install that same program? A lot of times, it removes the program AND its dependencies. How do we know that there aren't OTHER programs that use those same dependencies...which causes them to break?
lloyd
 
Posts: 130
Joined: Feb 4th, '14, 20:27

Re: Dependencies

Postby doktor5000 » Dec 22nd, '20, 15:27

lloyd wrote:A lot of times, it removes the program AND its dependencies.

Usually that should not happen, because that would mean dependencies are broken. If you install app "A" which requires dependencies "B" and "C", those are automatically installed as dependencies.
If you later decide that you want to remove app "A" then "B" and "C" will NOT be removed automatically. In this case they are considered "orphan" or "leaf" packages.
There's also a wiki page that describes this: https://wiki.mageia.org/en/Removing_pac ... .2C_too.3F

lloyd wrote:How do we know that there aren't OTHER programs that use those same dependencies...which causes them to break?

This is pretty simple - if you would remove "B" and "C" from my above example, and no other app "D" or "E" are about to be removed, nothing requires those dependencies.
If you would encounter a case where after removing "B" and "C" from my above example, other apps "D" or "E" are broken, then that would mean they are missing dependencies and would warrant a bug report.

Hope that clears up your questions.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron