Skip to content

Commit

Permalink
Fix yum and add dnf instructions for non-scripted installs (#2272)
Browse files Browse the repository at this point in the history
* Fix yum and add DNF instructions for non-scripted installs

Yum instructions had inconsistent use of sudo and pointed to an older
path for the repo file.

The install script supports using dnf on Fedora, so it makes sense to also give the non-automated install commands.
Fedora 41 now ships with DNF5 which uses a slightly different syntax so both DNF 4 (Fedora versions <= 40) and DNF 5 (versions >= 41) are included

* nest dnf blocks

---------

Co-authored-by: Roman Dodin <[email protected]>
  • Loading branch information
varesa and hellt authored Nov 3, 2024
1 parent 4aa3505 commit d86e1cc
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,41 @@ sudo apt update && sudo apt install containerlab
```

///

/// tab | YUM

```
yum-config-manager --add-repo=https://netdevops.fury.site/yum/ && \
echo "gpgcheck=0" | sudo tee -a /etc/yum.repos.d/yum.fury.io_netdevops_.repo
sudo yum-config-manager --add-repo=https://netdevops.fury.site/yum/ && \
echo "gpgcheck=0" | sudo tee -a /etc/yum.repos.d/netdevops.fury.site_yum_.repo
sudo yum install containerlab
```

///

//// tab | DNF4

```bash
sudo dnf config-manager -y --add-repo "https://netdevops.fury.site/yum/" && \
echo "gpgcheck=0" | sudo tee -a /etc/yum.repos.d/netdevops.fury.site_yum_.repo

sudo dnf install containerlab
```

////


//// tab | DNF5

```bash
sudo dnf config-manager addrepo --set=baseurl="https://netdevops.fury.site/yum/" && \
echo "gpgcheck=0" | sudo tee -a /etc/yum.repos.d/netdevops.fury.site_yum_.repo

sudo dnf install containerlab
```

////

/// tab | APK
Download `.apk` package from [Github releases](https://github.com/srl-labs/containerlab/releases).
///
Expand Down

0 comments on commit d86e1cc

Please sign in to comment.