SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
All of the discussion about slackware and kde prompted me to rsync alien's kde 4.6 packages (thanks for these by the way!).
Each directory contains the .txz packages and associated .asc (all same signature)and md5s.
I want to avoid doing gpg --verify whatever.asc individually for multiple files. Likewise for md5sum -c whatever.md5.
Can anyone tell me a nice way of running run gpg --verify and md5sum on all files in the directory? I have been playing with wildcards but can't get it right.
Best,
Kris
Click here to see the post LQ members have rated as the most helpful post in this thread.
Wow, that was fast. Thank you. This worked like a treat. I am going to dissect your command a bit to understand it. Out of interest, is there any other way of doing it, if so what makes this your preferred way?
gpg can't verify multiple files, so you just need to "loop" with "for" instruction, and test every .asc files automatically. Each .asc file is stored in "$i" variable, then gpg can verify $i.
It's a basic shell instruction.
gpg can't verify multiple files, so you just need to "loop" with "for" instruction, and test every .asc files automatically. Each .asc file is stored in "$i" variable, then gpg can verify $i.
It's a basic shell instruction.
Sorry for my bad english.
I see. I'll forgive your actually functional english if you can forgive my n00b shell scripting.
I would have used GNU Parallel since it would be faster than a loop, given that the verification would run in parallel
ls *.asc | parallel gpg --verify
Thanks, this seems like a nice way of doing this. I was actually messing around with wild cards and piping the output of ls to gpg, but didn't know that it couldn't handle multiple arguements.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.