[QGIS-Developer] Deploying 3.10.8 LTR on Debian 10

Sebastiaan Couwenberg sebastic at xs4all.nl
Fri Jul 24 21:54:09 PDT 2020


On 7/25/20 1:39 AM, Patrick Dunford wrote:
> OK I am not sure that is exactly what I want, the output looks like the
> package list in the qgis web site where the packages are stored. What I
> need is the version of each dependency which is actually on my computer now.

So you expand the logic to check if any of the listed dependencies are
installed, e.g.:

 for pkg_version in $(dpkg -l | grep qgis | grep ^ii | awk '{print
$2"="$3}'); do apt-cache show $pkg_version | egrep "Depends|Recommends"
| sed 's/^Depends: //; s/^Recommends: //' | perl -e 'my $input="";
while(<>){ $input .= $_; } foreach my $pkgs (split /, /, $input){ $pkgs
=~ s/ \(.*\)//; foreach my $pkg (split / \| /, $pkgs) { $pkg =~
s/:\S+//; system("dpkg -l $pkg"); } }'; done | grep ^ii | awk '{print
$2" "$3}'

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


More information about the QGIS-Developer mailing list