/ Published in: Bash
                    
                                        
One line command to find and import all PGP keys for sources.list repositories.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
aptitude update 2>&1 > /dev/null | grep NO_PUBKEY | sed 's/^.*NO_PUBKEY //g' | xargs -L 1 gpg --keyserver keyserver.ubuntu.com --recv-keys; gpg --armor --export | apt-key add -
Comments
 Subscribe to comments
                    Subscribe to comments
                
                