Updating an offline Debian system

Command Line – apt-offline

© Lead Image © nath anantachoke, 123rf.com

© Lead Image © nath anantachoke, 123rf.com

Article from Issue 298/2025
Author(s):

This new utility lets you update a system that is not connected to the Internet.

Debian's APT package manager has dozens of utilities. Apparently, though, there is always room for one more. In 2022, apt-offline appeared [1] and was soon judged "amazing" on the TLDR website [2]. Written by Ritesh Raj Sarraf, apt-offline fills a gap in the array of APT utilities by providing a systematic means of updating the packages on an offline machine. As Sarraf writes on the project's GitHub site, "Most people with slow or no Internet connection (mostly people from third-world countries), may not have considered using Debian (or Debian derived distributions), because Debian's real taste is experienced when it is connected to the Internet. This utility is an attempt [to eradicate] that problem."

Today, apt-offline is compatible with most Debian-based systems and available from their repositories. However, Linux TLDR advises against installing from Ubuntu 22.04 LTS or Ubuntu 20.04 LTS because they use an old version of apt-offline that "has Python-related deprecation issues." Instead, TLDR suggests installing apt-offline v1.8.5 from Ubuntu 23.04 or later, using, if necessary,

sudo apt --fix-broken install

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News