Skip to content

Instantly share code, notes, and snippets.

@sanju2
Created March 31, 2024 19:15
Show Gist options
  • Save sanju2/00705aca2b2d8d1efebbb0c1618a6551 to your computer and use it in GitHub Desktop.
Save sanju2/00705aca2b2d8d1efebbb0c1618a6551 to your computer and use it in GitHub Desktop.
Trivy-Install-Ubuntu-EC2
#!/bin/bash
sudo apt-get install wget apt-transport-https gnupg lsb-release -y
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install trivy -y
#trivy --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment