github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/Documentation/distributions.md (about)

     1  # Installing rkt on popular Linux distributions
     2  
     3  - [Arch](#arch)
     4  - [CentOS](#centos)
     5  - [Container Linux by CoreOS](#container-linux)
     6  - [Debian](#debian)
     7  - [Fedora](#fedora)
     8  - [Gentoo](#gentoo)
     9  - [NixOS](#nixos)
    10  - [openSUSE](#opensuse)
    11  - [Ubuntu](#ubuntu)
    12  - [Void](#void)
    13  
    14  ## Upstream-maintained packages (manual installation from rkt project)
    15  - [rpm-based](#rpm-based)
    16  - [deb-based](#deb-based)
    17  
    18  
    19  ## Distribution-maintained packages (automatic installation from repositories)
    20  If your distribution packages rkt, then you should generally use their version. However,
    21  if you need a newer version, you may choose to manually install the rkt-provided rpm and deb packages.
    22  
    23  ## Arch
    24  
    25  rkt is available in the [Community Repository][pkg-arch] and can be installed using pacman:
    26  ```
    27  sudo pacman -S rkt
    28  ```
    29  
    30  ## CentOS
    31  
    32  rkt is available in the [CentOS Community Build Service][pkg-centos] for CentOS 7.
    33  However, this is [not yet ready for production use][rkt-1305] due to pending systemd upgrade issues.
    34  
    35  ## Container Linux
    36  
    37  rkt is an integral part of Container Linux, installed with the operating system.
    38  The [Container Linux releases page][cl-releases] lists the version of rkt available in each Container Linux release channel.
    39  
    40  If the version of rkt included in Container Linux is too old, it's fairly trivial to fetch the desired version [via a systemd unit][cl-install-rkt].
    41  
    42  ## Debian
    43  
    44  rkt is currently packaged in [Debian sid][pkg-debian] (unstable).
    45  
    46  ```
    47  sudo apt-get install rkt
    48  ```
    49  
    50  If you don't run sid, or wish for a newer version, you can [install manually](#deb-based).
    51  
    52  ## Fedora
    53  
    54  Since Fedora version 24, rkt packages are available in the main repository. We recommend using recent Fedora releases or a manually installed package in order to have an up-to-date rkt binary.
    55  
    56  
    57  ```
    58  sudo dnf install rkt
    59  ```
    60  
    61  rkt's entry in the [Fedora package database][pkg-fedora] tracks packaging work for this distribution.
    62  
    63  #### Caveat: SELinux
    64  
    65  rkt does not work with the SELinux policies currently shipped with Fedora versions 24 and 25.
    66  
    67  As a workaround, SELinux can be temporarily disabled:
    68  ```
    69  sudo setenforce Permissive
    70  ```
    71  Or permanently disabled by editing `/etc/selinux/config`:
    72  ```
    73  SELINUX=permissive
    74  ```
    75  
    76  #### Caveat: firewalld
    77  
    78  Fedora uses [firewalld][firewalld] to dynamically define firewall zones.
    79  rkt is [not yet fully integrated with firewalld][rkt-2206].
    80  The default firewalld rules may interfere with the network connectivity of rkt pods.
    81  To work around this, add a firewalld rule to allow pod traffic:
    82  ```
    83  sudo firewall-cmd --add-source=172.16.28.0/24 --zone=trusted
    84  ```
    85  
    86  172.16.28.0/24 is the subnet of the [default pod network][networking-overview-default]. The command must be adapted when rkt is configured to use a [different network][networking-overview-additional] with a different subnet.
    87  
    88  ## Gentoo
    89  
    90  rkt is [packaged for gentoo][pkg-gentoo] and available via portage.
    91  
    92  ```
    93  sudo emerge rkt
    94  ```
    95  
    96  ## NixOS
    97  
    98  On NixOS enable rkt by adding the following line in `/etc/nixos/configuration.nix`:
    99  
   100  ```
   101  virtualisation.rkt.enable = true;
   102  ```
   103  
   104  Using the nix package manager on another OS you can use:
   105  
   106  ```
   107  nix-env -iA nixpkgs.rkt
   108  ```
   109  
   110  The source for the rkt.nix expression can be found on [GitHub][rkt-nixos]
   111  
   112  
   113  ## openSUSE
   114  
   115  rkt is available in the [Virtualization:containers][rkt-opensuse] project on openSUSE Build Service.
   116  Before installing, the appropriate repository needs to be added (usually Tumbleweed or Leap):
   117  
   118  ```
   119  sudo zypper ar -f obs://Virtualization:containers/openSUSE_Tumbleweed/ virtualization_containers
   120  sudo zypper ar -f obs://Virtualization:containers/openSUSE_Leap_42.1/ virtualization_containers
   121  ```
   122  
   123  Install rkt using zypper:
   124  
   125  ```
   126  sudo zypper in rkt
   127  ```
   128  
   129  ## Ubuntu
   130  
   131  rkt is not packaged currently in Ubuntu. Instead, install manually using the 
   132  [rkt debian package](#deb-based).
   133  
   134  ## Void
   135  
   136  rkt is available in the [official binary packages][void-packages] for the Void Linux distribution.
   137  The source for these packages is hosted on [GitHub][rkt-void].
   138  
   139  
   140  # rkt-maintained packages
   141  As part of the rkt build process, rpm and deb packages are built. If you need to use
   142  the latest rkt version, or your distribution does not bundle rkt, these are available.
   143  
   144  Currently the rkt upstream project does not maintain its own repository, so users of these packages must
   145  upgrade manually.
   146  
   147  ### rpm-based 
   148  ```
   149  gpg --recv-key 18AD5014C99EF7E3BA5F6CE950BDD3E0FC8A365E
   150  wget https://github.com/rkt/rkt/releases/download/v1.30.0/rkt-1.30.0-1.x86_64.rpm
   151  wget https://github.com/rkt/rkt/releases/download/v1.30.0/rkt-1.30.0-1.x86_64.rpm.asc
   152  gpg --verify rkt-1.30.0-1.x86_64.rpm.asc
   153  sudo rpm -Uvh rkt-1.30.0-1.x86_64.rpm
   154  ```
   155  
   156  ### deb-based
   157  ```
   158  gpg --recv-key 18AD5014C99EF7E3BA5F6CE950BDD3E0FC8A365E
   159  wget https://github.com/rkt/rkt/releases/download/v1.30.0/rkt_1.30.0-1_amd64.deb
   160  wget https://github.com/rkt/rkt/releases/download/v1.30.0/rkt_1.30.0-1_amd64.deb.asc
   161  gpg --verify rkt_1.30.0-1_amd64.deb.asc
   162  sudo dpkg -i rkt_1.30.0-1_amd64.deb
   163  ```
   164  
   165  [cl-install-rkt]: install-rkt-in-coreos.md
   166  [cl-releases]: https://coreos.com/releases/
   167  [debian-823322]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823322
   168  [firewalld]: https://fedoraproject.org/wiki/FirewallD
   169  [networking-overview-additional]: networking/overview.md#setting-up-additional-networks
   170  [networking-overview-default]: networking/overview.md#the-default-network
   171  [pkg-arch]: https://www.archlinux.org/packages/community/x86_64/rkt/
   172  [pkg-centos]: https://cbs.centos.org/koji/packageinfo?packageID=4464
   173  [pkg-debian]: https://packages.debian.org/sid/utils/rkt
   174  [pkg-fedora]: https://admin.fedoraproject.org/pkgdb/package/rpms/rkt/
   175  [pkg-gentoo]: https://packages.gentoo.org/packages/app-emulation/rkt
   176  [rkt-nixos]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/virtualization/rkt/default.nix
   177  [rkt-opensuse]: https://build.opensuse.org/package/show/Virtualization:containers/rkt
   178  [rkt-void]: https://github.com/voidlinux/void-packages/tree/master/srcpkgs/rkt
   179  [rkt-1305]: https://github.com/rkt/rkt/issues/1305
   180  [rkt-1978]: https://github.com/rkt/rkt/issues/1978
   181  [rkt-2206]: https://github.com/rkt/rkt/issues/2206
   182  [rkt-2322]: https://github.com/rkt/rkt/issues/2322
   183  [rkt-2325]: https://github.com/rkt/rkt/issues/2325
   184  [rkt-2326]: https://github.com/rkt/rkt/issues/2326
   185  [void-packages]: http://www.voidlinux.eu/packages/