Git Product home page Git Product logo

zig-debian's Introduction

Zig for Debian and Ubuntu

This repository contains instructions for installing the Zig programming language and toolchain on the Ubuntu and Debian operating systems, as well as the debuild configuration for building the corresponding binary packages from the upstream tarballs.

Distributions

Currently, x86-64 (aka AMD64) binary packages are available for all recent Ubuntu and Debian releases:

Distribution Alias AMD64
Ubuntu 20.10 Groovy
Ubuntu 20.04 LTS Focal
Ubuntu 19.10 Eoan
Ubuntu 18.04 LTS Bionic
Debian 11 Bullseye
Debian 10 Buster
Debian unstable Sid

Installation

Installation from an APT repository

Once you've completed the repository configuration (see further below), installation is as easy as the familiar:

$ sudo apt install zig

Installation from a downloaded .DEB package file

Alternatively, you can just download the latest .deb file and install that directly with dpkg:

$ wget https://github.com/dryzig/zig-debian/releases/download/0.6.0-1/zig_0.6.0-1_amd64.deb

$ sudo dpkg -i zig_0.6.0-1_amd64.deb

Configuration

Configure PGP Signing Keys

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61

Configuration on Ubuntu

Configure on Ubuntu 20.10 (Groovy)

$ echo 'deb https://dl.bintray.com/dryzig/zig-ubuntu groovy main' | sudo tee -a /etc/apt/sources.list
$ sudo apt update

Configure on Ubuntu 20.04 LTS (Focal)

$ echo 'deb https://dl.bintray.com/dryzig/zig-ubuntu focal main' | sudo tee -a /etc/apt/sources.list
$ sudo apt update

Configure on Ubuntu 19.10 (Eoan)

$ echo 'deb https://dl.bintray.com/dryzig/zig-ubuntu eoan main' | sudo tee -a /etc/apt/sources.list
$ sudo apt update

Configure on Ubuntu 18.04 LTS (Bionic)

$ echo 'deb https://dl.bintray.com/dryzig/zig-ubuntu bionic main' | sudo tee -a /etc/apt/sources.list
$ sudo apt update

Configuration on Debian

Configure on Debian 11 (Bullseye)

$ echo 'deb https://dl.bintray.com/dryzig/zig-debian bullseye main' | sudo tee -a /etc/apt/sources.list
$ sudo apt update

Configure on Debian 10 (Buster)

$ echo 'deb https://dl.bintray.com/dryzig/zig-debian buster main' | sudo tee -a /etc/apt/sources.list
$ sudo apt update

Maintenance

Building zig_0.6.0-1_amd64.deb

$ wget https://ziglang.org/download/0.6.0/zig-linux-x86_64-0.6.0.tar.xz
$ tar xvf zig-linux-x86_64-0.6.0.tar.xz
$ ln -s zig-linux-x86_64-0.6.0 zig-0.6.0
$ tar cJhf zig_0.6.0.orig.tar.xz zig-0.6.0
$ cd zig-0.6.0
$ git clone https://github.com/dryzig/zig-debian.git debian
$ debuild

zig-debian's People

Contributors

artob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.