Skip to content

Commit

Permalink
Update installation steps for CentOS
Browse files Browse the repository at this point in the history
Fixes: gh#3495

Following up on pr#3514 and gh#3495, it seemed better
to create a separate OBS sub-project for each
major.minor version like CentOS SIGs did.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
  • Loading branch information
lsm5 committed Apr 11, 2020
1 parent ce74eaf commit ccefb16
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions README.md
Expand Up @@ -96,9 +96,38 @@ up a PR and add it to the list.
### Installing CRI-O
To install CRI-O, you can use your distribution's package manager:

CentOS 7:
```bash
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/CentOS_7/devel:kubic:libcontainers:stable.repo
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION].repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION]/CentOS_7/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION].repo
sudo yum -y install cri-o
```

CentOS 8:
```bash
sudo dnf -y install 'dnf-command(copr)'
sudo dnf -y copr enable rhcontainerbot/container-selinux
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/CentOS_8/devel:kubic:libcontainers:stable.repo
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION].repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION]/CentOS_8/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION].repo
sudo dnf -y install cri-o
```

CentOS Stream:
```bash
sudo dnf -y install 'dnf-command(copr)'
sudo dnf -y copr enable rhcontainerbot/container-selinux
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/CentOS_8_Stream/devel:kubic:libcontainers:stable.repo
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION].repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION]/CentOS_8_Stream/devel:kubic:libcontainers:stable:cri-o:[REQUIRED VERSION].repo
sudo dnf -y install cri-o
```

Fedora 30 and later:
```sudo dnf module install cri-o```
Fedora 29, CentOS, RHEL, and related distributions:
```bash
sudo dnf module enable cri-o:[REQUIRED VERSION]
sudo dnf install cri-o
```

Fedora 29, RHEL, and related distributions:
```sudo yum install crio```
openSUSE:
```sudo zypper install cri-o```
Expand Down

0 comments on commit ccefb16

Please sign in to comment.