You are not logged in.

#1 2020-02-26 07:22:31

Gregosky
Member
From: UK
Registered: 2013-07-26
Posts: 184

[SOLVED] How to install dependencies but without main package

I'm wondering if it's possible to install dependencies of package but without package itself.

I have built opencv locally to have CUDA enabled. Now I'm trying to use CUDA in my program but noticed video won't load because I'm missing some dependencies (I guess ffmpeg but there will probably be more). So I thought maybe I will install official cuda package to get dependencies - but this will probably mess up where is my program looking for CUDA libs...

Last edited by Gregosky (2020-02-26 07:50:42)

Offline

#2 2020-02-26 07:26:42

papajoke
Member
From: france
Registered: 2014-10-10
Posts: 42

Re: [SOLVED] How to install dependencies but without main package

view : pacman -Sh


LTS - Fish - Kde - intel M100 - 16Go RAM - ssd

Offline

#3 2020-02-26 07:31:35

Gregosky
Member
From: UK
Registered: 2013-07-26
Posts: 184

Re: [SOLVED] How to install dependencies but without main package

papajoke wrote:

view : pacman -Sh

Very helpful, yes I checked help and I looked at google. I know I can list dependencies and install them individually, but I was hoping to achieve this without writing bash script.

So if you are trying to say "not possible" then thank you.

Offline

#4 2020-02-26 07:45:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,087

Re: [SOLVED] How to install dependencies but without main package

You could install the package and then remove it non-recursively, but your entire approach is a recipe for disaster.
Build an opencv package that list the proper deps or just use https://aur.archlinux.org/packages/opencv-cuda/

Offline

#5 2020-02-26 07:50:05

Gregosky
Member
From: UK
Registered: 2013-07-26
Posts: 184

Re: [SOLVED] How to install dependencies but without main package

Oh, opencv-cuda sounds like something I should have been looking for in the first place, thanks @seth!

Offline

#6 2020-02-26 14:23:55

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] How to install dependencies but without main package

Gregosky wrote:
papajoke wrote:

view : pacman -Sh

Very helpful, yes I checked help and I looked at google. I know I can list dependencies and install them individually, but I was hoping to achieve this without writing bash script.

So if you are trying to say "not possible" then thank you.

I don not understand why you are insinuating that this requites "writing bash script".

It is ONE LINE, and you can manually copy-paste it after "sudo pacman -S". It takes 2 seconds.

I would also like to know how you successfully compiled opencv's ffmpeg support without ffmpeg installed, since runtime library dependencies are almost inevitably also build-time dependencies.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB