Skip to content

5 comments

Almost? All packages in core, extra, community and multilib are signed and have been for a couple of days (at least on x86_64).

I made this little script a while back:

#!/bin/bash

for repo in core extra community multilib; do

repofile="/var/lib/pacman/sync/$repo.db"

if [[ -f $repofile ]]; then

signed=$(zgrep -c "%PGPSIG%" $repofile)

total=$(zgrep -c "%NAME%" $repofile)

signed_ratio=$(echo "scale=4; $signed / $total" | bc)

echo "[$repo]"

echo "Total: $total Signed: $signed Ratio: $signed_ratio "

else

echo "Database $repofile not found"

fi

done

This needs "bc" installed to compute the ratio and operates on the local "sync" databases.

It's output on my (x86_64) system currently is:

[core]

Total: 191 Signed: 191 Ratio: 1.0000

[extra]

Total: 2736 Signed: 2736 Ratio: 1.0000

[community]

Total: 2389 Signed: 2389 Ratio: 1.0000

[multilib]

Total: 139 Signed: 139 Ratio: 1.0000

7 points

True. I made this post a week ago, I think the last ones have been signed 3 days ago, although I haven't checked in a while.

3 points

Nice!

 $ time sudo ./signed.sh
Password:
[core]
Total: 191 Signed: 191 Ratio: 1.0000
[extra]
Total: 2736 Signed: 2736 Ratio: 1.0000
[community]
Total: 2385 Signed: 2385 Ratio: 1.0000
Database /var/lib/pacman/sync/multilib.db not found

real    0m2.139s
user    0m0.760s
sys     0m0.063s
2 points

"sudo" isn't needed here since the databases are world-readable ("pacman -Q" operations also works as normal user because of that).

The error comes because "multilib" is included in the second line. Remove it if you don't need it.

If you want to compare the time, here's what I did originally:

signed=$(LC_ALL=C pacman -Si $(pacman -Sql $repo) | grep "Signatures.*Yes" | wc -l)

total=$(pacman -Sql $repo | wc -l)

Replace line 5 and 6 with this and compare.

This screen-scrapes pacman's output so pacman needs to start first, whereas the new method reads the databases directly.

4 points

Sorry, I tried the one-liner the author provided in his article and it showed that a couple of packages (compiz, among others) were not signed yet. After a pacman -Syy it's all clear.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.