You are not logged in.

#1 2019-10-30 15:00:13

tethys
Member
Registered: 2019-08-13
Posts: 178

[SOLVED] How do I know if/when optional dependency is needed?

I have a general question about optional dependencies. Take for example python2. Many packages use it as normal or optional dependency. Suppose I uninstall a package together with its dependency python2. How will i know when/if other packages need python2 as an optional dependency? That is, if they malfunction, how do I link this to python2?

Last edited by tethys (2019-10-30 16:44:52)

Offline

#2 2019-10-30 15:16:08

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,678
Website

Re: [SOLVED] How do I know if/when optional dependency is needed?

tethys wrote:

How will i know when/if other packages need python2 as an optional dependency?

$ pacman -Qi python2

Check the "Optional For" line.

tethys wrote:

That is, if they malfunction, how do I link this to python2?

The general rule of thumb is to use a search engine to check the errors you get, but in this case if something requires python2 but it's not present, you're likely to get the error "python2: command not found", or "/usr/bin/python2: bad interpreter: No such file or directory", which should be self-explanatory.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2019-10-30 16:33:48

tethys
Member
Registered: 2019-08-13
Posts: 178

Re: [SOLVED] How do I know if/when optional dependency is needed?

Thank you for your reply WorMzy. I know the command "pacman -Qi" but the question was meant at run time - which you explain in the second part.

Offline

Board footer

Powered by FluxBB