如何在ubuntu中使用apt-get命令下载软件包

时间:2019-08-20 17:58:14  来源:igfitidea点击:

download子命令将下载软件包到当前目录中。

apt-get download package-name
eg.
apt-get download apache2

示例

Hyman@theitroad:~$ 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)

Hyman@theitroad:~$ ls -l 
-rw-r–r– 1 root root 1440 Mar 18 18:33 apache2_2.2.22-6ubuntu2.2_i386.deb
Hyman@theitroad:~$