Updating an offline Debian system
Command Line – apt-offline

© Lead Image © nath anantachoke, 123rf.com
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
[...]
Buy this article as PDF
(incl. VAT)