Fully Update And Upgrade Offline Debian-based Systems
Let us say, you have a system (Windows or Linux) with high-speed Internet connection at work and a Debian or any Debian derived systems with no internet connection or very slow Internet connection(like dial-up) at home. You want to upgrade your offline home system. What would you do? Buy a high speed Internet connection? Not necessary! You still can update or upgrade your offline system with Internet. This is where Apt-Offline comes in help.
As the name says, apt-offline is an Offline APT Package Manager for APT based systems like Debian and Debian derived distributions such as Ubuntu, Linux Mint. Using apt-offline, we can fully update/upgrade our Debian box without the need of connecting it to the Internet. It is cross-platform tool written in the Python Programming Language and has both CLI and graphical interfaces.
Requirements
- An Internet connected system (Windows or Linux). We call it online system for the sake of easy understanding throughout this guide.
- An Offline system (Debian and Debian derived system). We call it offline system.
- USB drive or External Hard drive with sufficient space to carry all updated packages.
Installation
Apt-Offline is available in the default repositories of Debian and derivatives. If your Online system is running with Debian, Ubuntu, Linux Mint, and other DEB based systems, you can install Apt-Offline using command:
sudo apt-get install apt-offline
If your Online runs with any other distro than Debian, git clone Apt-Offline repository:
git clone https://github.com/rickysarraf/apt-offline.git
Go the directory and run it from there.
cd apt-offline/
sudo ./apt-offline
Steps to do in Offline system (Non-Internet connected system)
Go to your offline system and create a directory where you want to store the signature file:
mkdir ~/tmp
cd ~/tmp/
You can use any directory of your choice. Then, run the following command to generate the signature file:
sudo apt-offline set apt-offline.sig
Sample output would be:
Generating database of files that are needed for an update. Generating database of file that are needed for operation upgrade
By default, apt-offline will generate database of files that are needed to be update and upgrade. You can use —update or --upgrade options to create database for either one of these.
Copy the entire tmp folder in an USB drive or external drive and go to your online system (Internet-enabled system).
Steps to do in Online system
Plug in your USB drive and go to the temp directory:
cd tmp/
Then, run the following command:
sudo apt-offline get apt-offline.sig --threads 5 --bundle apt-offline-bundle.zip
Here, “–threads 5” represents the number of APT repositories. You can increase the number if you want to download packages from more repositories. And, “–bundle apt-offline-bundle.zip” option represents all packages will be bundled in a single archive file called apt-offline-bundle.zip. This archive file will be saved in your current working directory.
The above command will download data based on the signature file generated earlier in the offline system.

This will take several minutes depending upon the Internet connection speed. Please note that apt-offline is cross platform, so you can use it to download packages on any OS.
Once completed, copy the tmp folder to USB or External drive and return back to the offline system. Make sure your USB device has enough free space to keep all downloaded files, because all packages are available in the tmp folder now.
Steps to do in offline system
Plug in the device in your offline system and go to the tmp directory where you have downloaded all packages earlier.
cd tmp
Then, run the following command to install all download packages.
sudo apt-offline install apt-offline-bundle.zip
This will update the APT database, so APT will find all required packages in the APT cache.
Note: If both online and offline systems are in the same local network, you can transfer the tmp folder to the offline system using “scp” or any other file transfer applications. If both systems are in different places, copy the folder using USB devices.
And, that’s all for now folks. I hope this guide will useful for you. More good stuffs to come. Stay tuned!
Cheers!
Resource:
Fully Update And Upgrade Offline Debian-based Systems的更多相关文章
- ubuntu sudo update与upgrade的作用及区别
ubuntu sudo update与upgrade的作用及区别 入门linux的同志,刚开始最迫切想知道的,大概一个是中文输入法,另一个就是怎么安装软件.本文主要讲一下LINUX安装软件方面的特点. ...
- Ubuntu点滴--apt-get update和upgrade的作用
update update is used to resynchronize the package index files from their sources. The indexes of av ...
- Linux中的update和upgrade的区别
update是更新源里的软件列表 upgrade顾名思义是升级,升级你系统里的软件
- ubuntu 手动更新源 以及使用sudo update与upgrade的作用及区别
一.今天更新一下我的ubuntu系统,用了几个源发现不怎么好用 上网查了一下发现有说阿里云的源挺好用 然后我试了一下 下载速度还挺快,下面分享一下怎么手动添加源列表 1.最好先做一下备份 sudo c ...
- 树莓3B+_apt-get update && apt-get upgrade
在Windows下安装软件,我们只需要有EXE文件,然后双击,下一步直接OK就可以了.但在LINUX下,不是这样的.每个LINUX的发行版,都会维护一个自己的软件仓库,我们常用的几乎所有软件都在这里面 ...
- Linux中的update和upgrade的作用
update 是同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包.update是下载源里面的metad ...
- 【linux】记录一个yum update和upgrade的区别
yum update 更新软件包和系统软件.系统内核 yum upgrade只更新软件包,不更新系统软件和系统内核 查看版本号 [root@localhost ~]# uname -r 3.10.0- ...
- download plugin update site for offline installation
Reference Eclipse Launcher Running update manager from command line 好多次为window下的eclipse不能拿到linux下直 ...
- apt-get update 和 upgrade 的区别
http://blog.csdn.net/duyiwuer2009/article/details/26983267
随机推荐
- c++官方文档-指针
#include<stdio.h> #include<iostream> #include<queue> #include<map> #include& ...
- Firefox内存占用过高解决方法
刚开始使用firefox火狐浏览器的时候,你会发现firefox占用内存大,CPU占用率高,打开网页停顿等问题,其实这些是因为firefox没有进行优化,默认设置是标准的设置的原因,解决方法如下: 一 ...
- hashlib 加密模块使用说明
import hashlib #hashilib 模块 m = hashlib.md5() m.update('hello 天王盖地虎'.encode(encoding = 'utf-8)) m.h ...
- SpringMvc Intercetor
对于登录的访问控制以及session的超时控制. 当用户在未登录情况下,直接在地址栏输入url进入某些页面时,会越过登录页,如果不做控制会有安全问题. 因此可添加拦截器处理异常: /** * @Des ...
- python引用,浅复制,深复制
引用:可以按照指针理解 copy:只复制父元素,所以如果一个列表嵌套了列表,那么浅复制后原变量和复制后的变量还是引用相同的子元素,子元素修改后,两个变量还会对应改变. deepcopy:复制父元素和子 ...
- Packed with amazing data about the world in 201
Only those who have the patience to do simple things,perfectly ever acquire the skill to do difficul ...
- ubuntu 软件包系统已损坏 解决方法
sudo apt-get clean sudo apt-get -f install sudo apt-get upgrade
- 吴裕雄 实战python编程(3)
import requests from bs4 import BeautifulSoup url = 'http://www.baidu.com'html = requests.get(url)sp ...
- Swagger+ springfox +Spring mvc
简介 Swagger 是一个规范和完整的框架,用于生成.描述.调用和可视化 RESTful 风格的 Web 服务.总体目标是使客户端和文件系统作为服务器以同样的速度来更新.文件的方法,参数和模型紧密集 ...
- Oracle to_date()函数的用法《转载》
to_date()是Oracle数据库函数的代表函数之一,下文对Oracle to_date()函数的几种用法作了详细的介绍说明, 原文地址:http://database.51cto.com/art ...