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: 2

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
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 7,263
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: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB