You are not logged in.
Pages: 1
Hi.
Is it possible to make pacman to output names of all installed packages with fonts?
Offline
pacman -Q | grep font
Offline
But it won't show for example installed "wqy-zenhei"...
Offline
You're welcome...
Offline
pacman -Qs font
Offline
pacman -Ql|grep -Ei 'ttf|otf|pfb|psf|pcf'|cut -f 1 -d ' '|uniqOr something like this
Offline
#!/usr/bin/perl
use strict;
my %font_pkgs;
open(my $pacman, '-|', 'pacman -Ql') or die($!);
while(<$pacman>) {
push(@{$font_pkgs{$1}}, $2) if($_ =~ /(.*)?\s+(.*font.*)/) and(! -d $2);
}
for my $pkg(sort(keys(%font_pkgs))) {
printf("\t\e[31;1m%s\e[0m => [\n", $pkg);
for my $font(@{$font_pkgs{$pkg}}) {
print "\t\t$font\n";
}
}Offline
Pages: 1