You are not logged in.
Pages: 1
I'd like to add few package to ArchLive, I need to know all the dependences including the indirect ones.
I know I can see using pacman -Si the direct deps, but how can I know EVERY dep?
Offline
Install pacman-contrib and then use "pacman -u <pkg>". The package you are interested in needs to be installed though...
Offline
I solved with this ugly script, but thanks!
#!/bin/bash
say() { echo -en "$@" >&2; }
die() { say "$@\n"; exit 1; }
if [[ $# -lt 1 ]] ;then
echo put the package name
exit 1
fi
package[0]="$1"
while true ;do
if [[ x${package[0]} == x ]] ;then break ;fi
new_deps=`pacman -Si "${package[0]}"` || die "Are you stupid?"
new_deps=`echo "$new_deps" | sed -n -e 's_ \+_ _g' -e '/^Depends/ s_\( \+$\)\|\(^[^:]*: *\)__g p'`
new_deps=`echo "$new_deps" | sed -e 's_<\|>[^ ]*__g'`
new_deps=( "${new_deps[@]}" )
if [[ x$new_deps != x"None" ]] ;then
package=("${package[@]}" $new_deps)
deps=("${deps[@]}" $new_deps)
fi
unset package[0]
package=( "${package[@]}" )
done
deps_size=${#deps[@]}
index=0
while [ "$index" -lt "$deps_size" ]
do
echo ${deps[$index]}
index=$(($index + 1))
done
Offline
Or build with own PKGBUILD, and then namcap for it.
Offline
or "pacgraph -c -m arch-repo [packages]"
Offline
Yeah, and this pacgraph package is available from AUR.
Offline
Pages: 1