github.com/ylsGit/go-ethereum@v1.6.5/build/ci-notes.md (about)

     1  # Debian Packaging
     2  
     3  Tagged releases and develop branch commits are available as installable Debian packages
     4  for Ubuntu. Packages are built for the all Ubuntu versions which are supported by
     5  Canonical:
     6  
     7  - Trusty Tahr (14.04 LTS)
     8  - Xenial Xerus (16.04 LTS)
     9  - Yakkety Yak (16.10)
    10  - Zesty Zapus (17.04)
    11  
    12  Packages of develop branch commits have suffix -unstable and cannot be installed alongside
    13  the stable version. Switching between release streams requires user intervention.
    14  
    15  The packages are built and served by launchpad.net. We generate a Debian source package
    16  for each distribution and upload it. Their builder picks up the source package, builds it
    17  and installs the new version into the PPA repository. Launchpad requires a valid signature
    18  by a team member for source package uploads. The signing key is stored in an environment
    19  variable which Travis CI makes available to certain builds.
    20  
    21  We want to build go-ethereum with the most recent version of Go, irrespective of the Go
    22  version that is available in the main Ubuntu repository. In order to make this possible,
    23  our PPA depends on the ~gophers/ubuntu/archive PPA. Our source package build-depends on
    24  golang-1.8, which is co-installable alongside the regular golang package. PPA dependencies
    25  can be edited at https://launchpad.net/%7Eethereum/+archive/ubuntu/ethereum/+edit-dependencies
    26  
    27  ## Building Packages Locally (for testing)
    28  
    29  You need to run Ubuntu to do test packaging.
    30  
    31  Add the gophers PPA and install Go 1.8 and Debian packaging tools:
    32  
    33      $ sudo apt-add-repository ppa:gophers/ubuntu/archive
    34      $ sudo apt-get update
    35      $ sudo apt-get install build-essential golang-1.8 devscripts debhelper
    36  
    37  Create the source packages:
    38  
    39      $ go run build/ci.go debsrc -workdir dist
    40  
    41  Then go into the source package directory for your running distribution and build the package:
    42  
    43      $ cd dist/ethereum-unstable-1.6.0+xenial
    44      $ dpkg-buildpackage
    45  
    46  Built packages are placed in the dist/ directory.
    47  
    48      $ cd ..
    49      $ dpkg-deb -c geth-unstable_1.6.0+xenial_amd64.deb