Sunteți pe pagina 1din 4

How to do OFFLine Installation in Linux Ubuntu?...

https://taufanlubis.wordpress.com/2016/07/17/...

Taufan Lubis Ubuntu Linux


Be free. be yourself with Linux.
Feeds:

Posts

Comments

How to do OFFLine Installation in Linux Ubuntu?


July 17, 2016 by taufanlubis
There few methods available that you can find in the Internet but the method that I like to share its
bit different. May be, it will suitable for you.
What is the benefit of OFFLINE installation?
You dont have to connect to the Internet when you install new application and you can distribute it
easily.
In this tutorial, I use Ubuntu 14.04.
Below are the steps:
1.Clean the folder /var/cache/apt/archives
Open your linux terminal then type the command below:
$sudo apt-get clean
This command will clean all .deb file in folder /var/cache/apt/archives.
Clean the folder is important otherwise it will mixed up with the previous download application files.
For folder /var/cache/apt/archives/partial is only temporary place before files moved to archieves,
so it will automatically cleaned.
2.Update the source list.
Connect to the Internet and update your package list because sometimes your application its not the
list yet.
$sudo apt-get update
3.Download the application.
For example, you want to download nmap. Type the command below. This command only download
the .deb files of the application in folder /var/cache/apt/archives, NOT install it. $sudo apt-get install
-d nmap
(d = download-only)
darklinux@darklinux:~$ nmap
The program nmap is currently not installed. You can install it by typing:
1 of
4 apt-get install nmap
sudo

21/07/16 08:38

How to do OFFLine Installation in Linux Ubuntu?...

https://taufanlubis.wordpress.com/2016/07/17/...

darklinux@darklinux:~$ sudo apt-get install -d nmap


[sudo] password for darklinux:
Reading package lists Done
Building dependency tree
Reading state information Done
The following extra packages will be installed:
libblas3 liblinear-tools liblinear1
Suggested packages:
libsvm-tools liblinear-dev
The following NEW packages will be installed:
libblas3 liblinear-tools liblinear1 nmap
0 upgraded, 4 newly installed, 0 to remove and 500 not upgraded.
Need to get 4.102 kB of archives.
After this operation, 18,3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu/ (http://id.archive.ubuntu.com/ubuntu/) trusty/main libblas3 i386
1.2.20110419-7 [183 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ (http://id.archive.ubuntu.com/ubuntu/) trusty/main liblinear1 i386
1.8+dfsg-1ubuntu1 [32,0 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ (http://id.archive.ubuntu.com/ubuntu/) trusty/main liblinear-tools
i386 1.8+dfsg-1ubuntu1 [18,1 kB]
Get:4 http://id.archive.ubuntu.com/ubuntu/ (http://id.archive.ubuntu.com/ubuntu/) trusty/main nmap i386
6.40-0.2ubuntu1 [3.869 kB]
Fetched 4.102 kB in 28s (144 kB/s)
Download complete and in download only mode
darklinux@darklinux:~$

4.Create a folder and copy all the .deb files in it.


Goto /var/cache/apt/archives folder, copy all the .deb files to your nmap folder.
Below is the example of my applications collection.

2 of 4

21/07/16 08:38

How to do OFFLine Installation in Linux Ubuntu?...

https://taufanlubis.wordpress.com/2016/07/17/...

5.Goto nmap folder and install the package.


I suggest to install the application using dpkg (package manager for debian). From Linux Terminal,
goto to your nmap folder then type the command below.
$sudo dpkg -i *.deb
darklinux@darklinux:/media/darklinux/Data300GB/01_LINUX/08-DEB COLLECTIONS for Ubuntu
14.04/nmap$ sudo dpkg -i *.deb
[sudo] password for darklinux:
(Reading database 167847 files and directories currently installed.)
Preparing to unpack libblas3_1.2.20110419-7_i386.deb
Unpacking libblas3 (1.2.20110419-7) over (1.2.20110419-7)
Preparing to unpack liblinear1_1.8+dfsg-1ubuntu1_i386.deb
Unpacking liblinear1 (1.8+dfsg-1ubuntu1) over (1.8+dfsg-1ubuntu1)
Preparing to unpack liblinear-tools_1.8+dfsg-1ubuntu1_i386.deb
Unpacking liblinear-tools (1.8+dfsg-1ubuntu1) over (1.8+dfsg-1ubuntu1)
Selecting previously unselected package nmap.
Preparing to unpack nmap_6.40-0.2ubuntu1_i386.deb
Unpacking nmap (6.40-0.2ubuntu1)
Setting up libblas3 (1.2.20110419-7)
Setting up liblinear1 (1.8+dfsg-1ubuntu1)
Setting up liblinear-tools (1.8+dfsg-1ubuntu1)
Setting up nmap (6.40-0.2ubuntu1)
Processing triggers for man-db (2.6.7.1-1ubuntu1)
Processing triggers for libc-bin (2.19-0ubuntu6.5)
darklinux@darklinux:/media/darklinux/Data300GB/01_LINUX/08-DEB COLLECTIONS for Ubuntu
14.04/nmap$
Test the application:
darklinux@darklinux:/media/darklinux/Data300GB/01_LINUX/08-DEB COLLECTIONS for Ubuntu
14.04/nmap$ nmap localhost
Starting Nmap 6.40 ( http://nmap.org (http://nmap.org) ) at 2016-07-17 19:33 WIB
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00063s latency).
Not shown: 999 closed ports
PORT
STATE SERVICE
3 of
4
21/07/16 08:38

How to do OFFLine Installation in Linux Ubuntu?...

https://taufanlubis.wordpress.com/2016/07/17/...

631/tcp open ipp


Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
darklinux@darklinux:/media/darklinux/Data300GB/01_LINUX/08-DEB COLLECTIONS for Ubuntu
14.04/nmap$
Happy trying.

Posted in Applications for Ubuntu, How To | Leave a Comment


Comments RSS

Create a free website or blog at WordPress.com.


The MistyLook Theme.

4 of 4

21/07/16 08:38

S-ar putea să vă placă și