How to download package using apt-get command in ubuntu
To download the package in ubuntu with the help of command apt-get use the flag called download
Note: download flag will download the given binary package into the current directory.
apt-get download package-name
eg.
apt-get download apache2
This below given is the practical which I did in Ubuntu
linux@tuxworld:~$ sudo apt-get download apache2
[sudo] password for linux:
Get:1 Downloading apache2 2.2.22-6ubuntu2.2 [1,440 B]
Fetched 1,440 B in 0s (4,451 B/s)
linux@tuxworld:~$ ls -l apache2_2.2.22-6ubuntu2.2_i386.deb
-rw-r–r– 1 root root 1440 Mar 18 18:33 apache2_2.2.22-6ubuntu2.2_i386.deb
linux@tuxworld:~$
You can see the downloaded package in current directory from where you have run the command.