mirror of
https://github.com/containers/skopeo.git
synced 2025-10-22 19:50:00 +00:00
install: make commands copy-pasteable
Based on Elan Ruusamäe patch. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
committed by
Valentin Rothberg
parent
4ad2c75b52
commit
72e8af59aa
72
install.md
72
install.md
@@ -6,13 +6,13 @@
|
|||||||
### Fedora
|
### Fedora
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo dnf -y install skopeo
|
sudo dnf -y install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
### RHEL/CentOS ≥ 8 and CentOS Stream
|
### RHEL/CentOS ≥ 8 and CentOS Stream
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo dnf -y install skopeo
|
sudo dnf -y install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
Newer Skopeo releases may be available on the repositories provided by the
|
Newer Skopeo releases may be available on the repositories provided by the
|
||||||
@@ -21,11 +21,11 @@ Kubic project. Beware, these may not be suitable for production environments.
|
|||||||
on CentOS 8:
|
on CentOS 8:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo dnf -y module disable container-tools
|
sudo dnf -y module disable container-tools
|
||||||
$ sudo dnf -y install 'dnf-command(copr)'
|
sudo dnf -y install 'dnf-command(copr)'
|
||||||
$ sudo dnf -y copr enable rhcontainerbot/container-selinux
|
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.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo
|
||||||
$ sudo dnf -y install skopeo
|
sudo dnf -y install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
on CentOS 8 Stream:
|
on CentOS 8 Stream:
|
||||||
@@ -41,33 +41,33 @@ sudo dnf -y install skopeo
|
|||||||
### RHEL/CentOS ≤ 7.x
|
### RHEL/CentOS ≤ 7.x
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo yum -y install skopeo
|
sudo yum -y install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
Newer Skopeo releases may be available on the repositories provided by the
|
Newer Skopeo releases may be available on the repositories provided by the
|
||||||
Kubic project. Beware, these may not be suitable for production environments.
|
Kubic project. Beware, these may not be suitable for production environments.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ 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.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/devel:kubic:libcontainers:stable.repo
|
||||||
$ sudo yum -y install skopeo
|
sudo yum -y install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
### openSUSE
|
### openSUSE
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo zypper install skopeo
|
sudo zypper install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
### Alpine
|
### Alpine
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo apk add skopeo
|
sudo apk add skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
### macOS
|
### macOS
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ brew install skopeo
|
brew install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
### Nix / NixOS
|
### Nix / NixOS
|
||||||
@@ -83,38 +83,38 @@ are available via the [Kubic][0] project repositories:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian Unstable/Sid:
|
# Debian Unstable/Sid:
|
||||||
$ echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Unstable/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Unstable/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Unstable/Release.key | sudo apt-key add -
|
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Unstable/Release.key | sudo apt-key add -
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian Testing:
|
# Debian Testing:
|
||||||
$ echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/Release.key | sudo apt-key add -
|
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/Release.key | sudo apt-key add -
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian 10:
|
# Debian 10:
|
||||||
$ echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/Release.key | sudo apt-key add -
|
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/Release.key | sudo apt-key add -
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Raspbian 10:
|
# Raspbian 10:
|
||||||
$ echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Raspbian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Raspbian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Raspbian_10/Release.key | sudo apt-key add -
|
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Raspbian_10/Release.key | sudo apt-key add -
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ubuntu (18.04, 19.04, 19.10 and 20.04):
|
# Ubuntu (18.04, 19.04, 19.10 and 20.04):
|
||||||
$ . /etc/os-release
|
. /etc/os-release
|
||||||
$ sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
|
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
|
||||||
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/Release.key | sudo apt-key add -
|
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/Release.key | sudo apt-key add -
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
$ sudo apt-get -y install skopeo
|
sudo apt-get -y install skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
Otherwise, read on for building and installing it from source:
|
Otherwise, read on for building and installing it from source:
|
||||||
@@ -139,29 +139,29 @@ Install the necessary dependencies:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Fedora:
|
# Fedora:
|
||||||
$ sudo dnf install gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
|
sudo dnf install gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ubuntu (`libbtrfs-dev` requires Ubuntu 18.10 and above):
|
# Ubuntu (`libbtrfs-dev` requires Ubuntu 18.10 and above):
|
||||||
$ sudo apt install libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev
|
sudo apt install libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# macOS:
|
# macOS:
|
||||||
$ brew install gpgme
|
brew install gpgme
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# openSUSE:
|
# openSUSE:
|
||||||
$ sudo zypper install libgpgme-devel device-mapper-devel libbtrfs-devel glib2-devel
|
sudo zypper install libgpgme-devel device-mapper-devel libbtrfs-devel glib2-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure to clone this repository in your `GOPATH` - otherwise compilation fails.
|
Make sure to clone this repository in your `GOPATH` - otherwise compilation fails.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
|
git clone https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
|
||||||
$ cd $GOPATH/src/github.com/containers/skopeo && make bin/skopeo
|
cd $GOPATH/src/github.com/containers/skopeo && make bin/skopeo
|
||||||
```
|
```
|
||||||
|
|
||||||
By default the `make` command (make all) will build bin/skopeo and the documentation locally.
|
By default the `make` command (make all) will build bin/skopeo and the documentation locally.
|
||||||
@@ -172,18 +172,18 @@ To build the manual you will need go-md2man.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian:
|
# Debian:
|
||||||
$ sudo apt-get install go-md2man
|
sudo apt-get install go-md2man
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
# Fedora:
|
# Fedora:
|
||||||
$ sudo dnf install go-md2man
|
sudo dnf install go-md2man
|
||||||
```
|
```
|
||||||
|
|
||||||
Then
|
Then
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make docs
|
make docs
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building in a container
|
### Building in a container
|
||||||
@@ -204,5 +204,5 @@ $ make binary
|
|||||||
Finally, after the binary and documentation is built:
|
Finally, after the binary and documentation is built:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user