You are not logged in.
Pages: 1
Topic closed
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 thumbs up!
this can be very usefull for people who make their own packages.
thank you
apt-get install arch
Offline
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
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
I changed the script a little to use pkgfile instead of pacman -Qo
Offline
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
Pages: 1
Topic closed