mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
docs: remove RELEASE_VERSION from trivy.repo (#6546)
This commit is contained in:
@@ -10,11 +10,10 @@ In this section you will find an aggregation of the different ways to install Tr
|
|||||||
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/$RELEASE_VERSION/\$basearch/
|
baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/\$basearch/
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgkey=https://aquasecurity.github.io/trivy-repo/rpm/public.key
|
gpgkey=https://aquasecurity.github.io/trivy-repo/rpm/public.key
|
||||||
|
|||||||
Reference in New Issue
Block a user