You are not logged in.

#1 2002-11-09 15:23:34

jk
Member
From: Groningen, The Netherlands
Registered: 2002-10-24
Posts: 66
Website

small script to help find dependencies

Hi, here's a small bash script to help packagers a bit with checking dependencies of dynamically linked executables. Maybe someone can find a use for it :-)

-----------------------------------------
#!/bin/bash
LIBS=`ldd $1 |awk '{print $3}'`

(for lib in $LIBS; do
        pacman -Qo $lib
done) | sort | uniq
-----------------------------------------

Output is as follows:

[jochem@lisa jochem]$ archdep /usr/bin/fluxconf
atk 1.0.3-2
freetype2 2.0.9-2
glib2 2.0.7-1
glibc 2.3.1-1
gtk2 2.0.7-2
pango 1.0.4-4
xfree86 4.2.1-2
[jochem@lisa jochem]$

Offline

#2 2002-11-09 18:52:54

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: small script to help find dependencies

2 thumbs up!

this can be very usefull for people who make their own packages.
thank you


apt-get install arch

Offline

#3 2002-12-13 18:32:16

jk
Member
From: Groningen, The Netherlands
Registered: 2002-10-24
Posts: 66
Website

Re: small script to help find dependencies

Couldn't live with the slowness of pacman -Qo, so i rewrote archdep a bit and a new script called archown, get them at:

http://jk.yazzy.org/resources/ArchLinux/scripts/archdep
http://jk.yazzy.org/resources/ArchLinux/scripts/archown

It makes archdep _much_ _much_ faster...

Now working on a small script which shows dependencies of a package instead of a file...  8)

(yes, i absolutely hate dependency hells)

Offline

#4 2002-12-13 19:29:31

jk
Member
From: Groningen, The Netherlands
Registered: 2002-10-24
Posts: 66
Website

Re: small script to help find dependencies

And here it is:

http://jk.yazzy.org/resources/ArchLinux … s/archpdep

usage:          archpdep packagename
for example:    archpdep fluxbox

Remember, this only checks dynamically linked
executables and shared libraries. For example, this is useless for packages that
install scripts.

Offline

#5 2017-05-14 10:51:35

rev.cressy
Member
Registered: 2016-01-04
Posts: 5

Re: small script to help find dependencies

I changed the script a little to use pkgfile instead of pacman -Qo

Offline

#6 2017-05-14 11:37:46

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,402
Website

Re: small script to help find dependencies

Yay? You really didn't need to necrobump a 15 year old thread to let us know..

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.


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

Board footer

Powered by FluxBB