Ubuntu package offline install
apt-get
Use apt-get with the "--print-uris" option to do it. I also add "-qq" so it would be quiet.
Create script:
sudo apt-get <<>> --print-uris -qq | sed -n "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/wget -c \1/p" > script.cmd
Examples
sudo apt-get install anjuta --print-uris -qq | sed -n "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/wget -c \1/p" > install-anjuta.cmd
sudo apt-get upgrade --print-uris -qq | sed -n "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/wget -c \1/p" > upgrade.cmd
sudo apt-get dist-upgrade --print-uris -qq | sed -n "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/wget -c \1/p" > dist-upgrade.cmd
Create md5sum file:
sudo apt-get <<>> --print-uris -qq | sed -n -e "s/[0-9]%[0-9a-f][0-9a-f]//" -e "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/\4 .\/\2/p" > md5sum.txt
Examples:
sudo apt-get install anjuta --print-uris -qq | sed -n -e "s/[0-9]%[0-9a-f][0-9a-f]//" -e "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/\4 .\/\2/p" > md5sum.txt
sudo apt-get upgrade --print-uris -qq | sed -n -e "s/[0-9]%[0-9a-f][0-9a-f]//" -e "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/\4 .\/\2/p" > md5sum.txt
sudo apt-get dist-upgrade --print-uris -qq | sed -n -e "s/[0-9]%[0-9a-f][0-9a-f]//" -e "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/\4 .\/\2/p" > md5sum.txt
Create script to download repository listings:
sudo apt-get update --print-uris -qq | sed -n "s/'([^ ]+)' ([^ ]+) ([^ ]+) :/wget -c \1 -O \2.bz2/p" > update.cmd
Synaptic
In synaptic you can select the packages you want to install and under the first menu there is an option to generate a script which you can take to another machine and run there. This script will "wget" (i.e. "download") all the packages you specified that you wanted (and their dependencies) which you run on a computer that does have internet access.
Once run you'll have all the package files needed by the disconnected computer. Carry them on a CD/USB stick and install them by sudo dpkg -i *.deb.
Cube
You can use Cube. It is an offline package management system which is compatible with Ubuntu, Linux Mint and other distributions that use apt-get.
Latest Preview of Cube 1.0.8 (February 7, 2014 Release) Camicri Cube

Running in freshly installed Ubuntu 12.04 Ubuntu

On Windows

References
- How can I install software or packages without Internet (offline)? answer1 answer2
- Camicri Cube: An Offline And Portable Package Management System
- Get packages and dependencies for installing offline
Ubuntu package offline install的更多相关文章
- remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
如果cmake提示下列错误:......CMake Error at cmake/readline.cmake:85 (MESSAGE): Curses library not found. Pl ...
- How to create Web Deployment Package and install the package
Create Web Deployment Package To configure settings on the Connection tab In the Publish method drop ...
- ubuntu 13.10 install wireshark
ubuntu 13.10 install wireshark 今天在使用java jsoup操作remote server的是否,在本地执行可以成功返回内容,然后打成jar包,使用shell在 ser ...
- 【maven】maven命令 package、install、deploy 的区别
maven命令 package.install.deploy 的区别
- ubuntu mac terminal install software
http-server // ubuntu sudo npm install http-server -g npm node.js yarn
- anaconda2下面安装opencv2.4.13.4完成----解决默认安装的问题----Thefunction is not implemented. Rebuild the library with Windows, GTK+ 2.x orCarbon support. If you are on Ubuntu or Debian, install libgtk2.0‑dev and pkg
转载自:http://blog.csdn.net/qingyanyichen/article/details/73550924 本人下载编译安装了opencv2.4.9,oppencv2.4.10,o ...
- CentOS中实现与Ubuntu下apt-get install build-essential功能类似的命令
CentOS中实现与Ubuntu下apt-get install build-essential功能类似的命令 在Ubuntu中安装完系统后,可以直接使用apt-get install build-e ...
- Debian/Ubuntu pip default install to $HOME/.local
pip default install to $HOME/.local on Debian/Ubuntu After pip 8.1.1-2 on Debian or Ubuntu you can p ...
- ubuntu openfire Server install
1.首先登录到ubuntu server.在安装openfire 服务器之前,先确保你的系统已经更新到最新.然后输入下面的命令,一行一行执行,最后安装可用的更新 sudo apt-get update ...
随机推荐
- tomcat应用服务器
Tomcat性能调优方案 一.操作系统调优 对于操作系统优化来说,是尽可能的增大可使用的内存容量.提高CPU的频率,保证文件系统的读写速率等.经过压力测试验证,在并发连接很多的情况下,CPU的处理能力 ...
- javascript 控制input
1.只允许输入数字 <input name="username" type="text" onkeyup="value=this.val ...
- [转]如何正确清理C盘
转自微软的Answers网站. 以下是推荐使用的方法,安全且不会误删有用的系统文件 1.尽量不要在C盘安装应用软件,在软件安装时,一般可以手动指定安装路径,您可以将软件指定安装到其他盘符. 在使用它们 ...
- Oracle数据库游标的类型
游标是SQL的一个内存工作区,由系统或用户以变量的形式定义.游标的作用就是用于临时存储从数据库中提取的数据块.Oracle数据库的Cursor类型包含三种: 静态游标:分为显式(explicit)游标 ...
- WCF方式调用asmx设置cookie
以前旧的方式去调用web service, 可以通过CookieContainer去设置cookie,改用WCF方式去调用,则必须配置allowCookies属性为true <system.se ...
- windows驱动编程入门(第一个程序)
1. 工具 vc6.0 WINDDK 3790.1830 Dbgview 驱动加载工具InstDrv32位/64位中文版 2. 代码 first.c /// /// @file first.c /// ...
- JavaScript鼠标事件,点击鼠标右键,弹出div
document.oncontextmenu = function(){return false}; //禁止鼠标右键菜单显示 var res = document.getElementById('b ...
- javascript 算法
前段时间学习算法方面的知识看了一下用C语言写的一些简单的算法自己用js模拟实现一遍现在整理出来和大家分享一下. 河内塔 斐波那契数列 巴斯卡三角形 三色棋 河内之塔(Towers of Hanoi)是 ...
- U - 神、上帝以及老天爷(第二季水)
Description HDU 2006'10 ACM contest的颁奖晚会隆重开始了! 为了活跃气氛,组织者举行了一个别开生面.奖品丰厚的抽奖活动,这个活动的具体要求是这样的: ...
- linux下C++对线程的封装
之前一直是使用C语言,前段时间转做C++.无论使用什么语言,多线程编程都是不可或缺的.最近项目中又用到了线程,现在将线程的封装做出总结: 1.线程类中应该包含线程ID.线程的状态以及线程基本操作等. ...