Gentoo Linux's package manager Portage is designed to build packages from source code. Packages are installed from ebuilds which represent the installation instructions for a given software. Ebuilds specify the location of one or more source archives which are automatically fetched by the package manager. Several URIs are supported: http
and https
, ftp
and sftp
, rsync
, and ssh
. This works perfectly well for open-source software, where the source tarball is publicly available. However, if the sources are not public, things get more complicated. In this post, I present different ways to fetch tarballs from URIs that require authentication.