How to update and upgrade Ubuntu or Linux Mint offline

apt-offline brings offline package management capability to a Debian based system including Ubuntu and Linux Mint. Using it, you can update other Ubuntu and Linux Mint system offline.

Offline update and upgrade of your Ubuntu or Linux Mint system are useful especially when you have a bunch of PCs on the same network. You don’t need to waste your internet bandwidth deploying updates and upgrades repeatedly for each PC.

Instead, download the updates on one PC and then perform offline updates on other PCs. The other PCs can be on the same network or you can use a USB drive to transfer the updates.

Reasons for Offline Update:

  • The absence of the desired network interface. Say you have a wireless network, but a system you possess only supports wired connection as it doesn’t have Wireless hardware installed
  • Having to update a large number of computers with limited network connection (data or connectivity)
  • The absence of proper internet connection (especially in developing countries)

We are going to use a program called apt-offline to install updates and upgrades offline in an Ubuntu system. You’re going to need another system with a proper internet connection and a USB storage device.

Update Ubuntu, Linux Mint Offline using apt-offline

apt-offline brings offline package management capability to a Debian based system including Ubuntu and Linux Mint. It can be used to download packages and its dependencies to be installed later on to the different system.

Command Synopsis:

apt-offline [ARGUMENTS] [OPTIONS]


The installation of apt-offline is simple. To install it, use the apt command:

sudo apt install apt-offline

Online installation of apt-offline.
Installing apt-offline on the system with an internet connection

It is only useful for a situation where the system has an internet connection, but you need to install updates on many computers which is data intensive, so you can afford to install only the program individually on all systems.

To install it offline, first enter this code in the system that has an internet connection:

sudo apt-get download python2.7-minimal python-minimal python3 python3-magic libmagic-mgc libmagic1 apt-offline

Downloading packages of apt-offline
Downloading packages of apt-offline

It downloads the .deb packages of apt-offline and its dependencies. If you check in the home directory, you will have the packages of these names downloaded in your home directory with a .deb extension. Copy these to a USB drive and transfer them to the home directory of the target computer.

Now install these on the target computer using:

sudo dpkg -i *.deb

Installing apt-offline offline.
Installing apt-offline offline

It will install the dependencies of apt-offline and the program itself.

Also, and very importantly, install apt-offline on the computer that has an internet connection. You can do so with the installation command mentioned already discussed in the above section.

FYI: The best results is possible if the system that needs to be updated and the system on the computer with the internet connection have a same OS. It makes the download of update packages easy both systems have the same repositories.


Now that you have installed it, you have to create a list of programs that need to be updated/upgraded. For this, run the following command on the target system:

sudo apt-offline set ~/file.sig

Creating package list for updates.
Creating a package list for updates

The location of the file given as ~/file.sig can be anything, but for the sake of simplicity, we would recommend you to keep it as id, with the name ~/file.sig.

A file named file.sig will be created in your home directory after running this command. Copy it to your USB drive and insert the USB drive back into the computer having the internet connection. Now copy file.sig from there, and paste it to the home directory of that computer.

You have the list of the programs that need to updated/upgraded in the computer that has an internet connection. Therefore, you can download them now. Run the following commands:

mkdir packages

To make a directory named packages that will contain the downloaded files.

apt-offline get -d packages/ file.sig

All the packages should get downloaded. It might take longer, so sit back and relax.

Downloading packages for updating/upgrading.
Downloading packages for updating/upgrading

After the download finishes, copy the directory packages to your USB drive and copy it to the target system’s home directory. Now install those packages by running:

sudo apt-offline install packages/

Input ‘y’ when prompted as seen in the screenshot below:

Installing downloaded packages.
Installing downloaded packages

It will install all the packages.


As you noticed, the program apt-offline is an excellent utility to perform offline updates on Ubuntu and Linux Mint in certain situations where you have many systems that must be kept updated. Download updates only once and then deploy the same packages to rest of all the systems.

For areas that do not have decent enough internet connectivity, the users can install updates with this and keep their systems updated.

And finally, for systems that have don’t have a network interface to connect to the internet (very rare scenario, but not impossible either), you can install the updates via offline update.

Let us know about your thoughts in the comments. Cheers!

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its many distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.


Please enter your comment!
Please enter your name here




Top 10 Reasons to use Xfce as your Desktop Environment

There are many choices for desktop environments for Linux based operating systems. Mainly, you can install any DE of your choice on most of the Linux based distributions, even if they are not offered as a package officially. In our recent articles, we discussed the best of KDE and Cinnamon. In this article, we wish to present to you the top reasons why you should consider Xfce as your desktop environment.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

3 Best Ways to Uninstall Software on Ubuntu

Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.

Pop!_OS 20.04 Review: Professional Linux Distribution Ever Made

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.

VIDEO: Linux Lite 4.8 Features and Desktop Tour

Linux Lite eases Windows 7 users transition to Linux much more comfortable by offering simple software like Team Viewer, VLC, Firefox, TimeShift backup utility, and a full Microsoft Office compatible office suite in LibreOffice.

Installing an updatable Manjaro Linux on a USB Flash Drive

In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.