mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
docs: fixed installation instruction for rhel/centos (#2143)
This commit is contained in:
@@ -7,10 +7,11 @@
|
|||||||
Add repository setting to `/etc/yum.repos.d`.
|
Add repository setting to `/etc/yum.repos.d`.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
|
RELEASE_VERSION=$(grep -Po '(?<=VERSION_ID=")[0-9]' /etc/os-release)
|
||||||
cat << EOF | sudo tee -a /etc/yum.repos.d/trivy.repo
|
cat << EOF | sudo tee -a /etc/yum.repos.d/trivy.repo
|
||||||
[trivy]
|
[trivy]
|
||||||
name=Trivy repository
|
name=Trivy repository
|
||||||
baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/$releasever/$basearch/
|
baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/$RELEASE_VERSION/\$basearch/
|
||||||
gpgcheck=0
|
gpgcheck=0
|
||||||
enabled=1
|
enabled=1
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user