This guide installs Aptly on a Debian/Ubuntu Linux host.
Note: Aptly is Debian/Ubuntu specific and is not available for RHEL-based systems.
Download the latest release from GitHub:
# Check latest version at https://github.com/aptly-dev/aptly/releases
APTLY_VERSION="1.5.0"
wget https://github.com/aptly-dev/aptly/releases/download/v${APTLY_VERSION}/aptly_${APTLY_VERSION}_linux_amd64.tar.gz
# Extract the archive
tar xzf aptly_${APTLY_VERSION}_linux_amd64.tar.gz
# Move to system path
sudo mv aptly /usr/local/bin/
# Verify installation
aptly --version
# Create configuration directory
sudo mkdir -p /etc/aptly
# Create data directory
sudo mkdir -p /var/lib/aptly
# Set permissions
sudo chown -R $USER:$USER /var/lib/aptly
Create /etc/aptly/aptly.conf:
{
"rootDir": "/var/lib/aptly",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"architectures": ["amd64", "i386"],
"dependencyFollowSuggests": false,
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"dependencyFollowSource": false,
"gpgDisableVerify": false,
"gpgDisableSign": false,
"publishEndpoint": {
"filesystem": {
"rootDir": "/var/www/aptly"
}
}
}
# Create a test local repository
aptly repo create test-repo
# List repositories
aptly repo list
# Clean up
aptly repo drop test-repo
See Aptly Configuration for configuration guidance.
See Aptly Security for hardening guidance.
Setting up package management systems can be complex. We offer consulting services for:
Contact us at office@linux-server-admin.com or visit our contact page.
References: