a r/archlinuxu/dejust23 Mar 2012 Almost all packages in [community] now signed; how to sign your own packages jasonwryan.comhttp://jasonwryan.com/post/19751467083/keysigning 35 points5 commentsSaveSavedHideHiddenCopy linkHideHiddenCopy linkOpen on Reddit About this post Posted23 Mar 2012 Archived20 Nov 2026 Score35 · 100% up KindLink IDra152 Authord u/dejust 13posts41comments1media View profile
hirnbrot23 Mar 20124 hidden 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 pointsCopy link 2brainz23 Mar 2012 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 pointsCopy link asdfirl2223 Mar 20121 hidden 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 pointsCopy link hirnbrot23 Mar 2012 "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 pointsCopy link dejustOP23 Mar 2012 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 pointsCopy link
2brainz23 Mar 2012 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 pointsCopy link
asdfirl2223 Mar 20121 hidden 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 pointsCopy link hirnbrot23 Mar 2012 "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 pointsCopy link
hirnbrot23 Mar 2012 "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 pointsCopy link
dejustOP23 Mar 2012 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 pointsCopy link
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:
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:
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.
Nice!
"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:
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.
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 -Syyit's all clear.