Fügen Sie einfach die Option -d
(oder --download
) zu einem beliebigen apt-get
Befehl hinzu. Dieser Ansatz ist einfach und effektiv.
- Mach dir keine Sorgen über Abhängigkeiten, sie werden auch heruntergeladen.
- Die Sicherheit bleibt erhalten, alle Integritätsprüfungen werden wie bei einer regulären Installation durchgeführt.
Z.B:
$ sudo apt-get dist-upgrade -d
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-3.19.0-39 linux-headers-3.19.0-39-generic linux-image-3.19.0-39-generic linux-image-extra-3.19.0-39-generic
linux-signed-image-3.19.0-39-generic
The following packages will be upgraded:
keepassx linux-headers-generic linux-libc-dev linux-signed-generic linux-signed-image-generic
5 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 67,0 MB of archives.
After this operation, 289 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://nl.archive.ubuntu.com/ubuntu/ vivid-updates/main linux-image-3.19.0-39-generic amd64 3.19.0-39.44 [16,9 MB]
[...]
Fetched 67,0 MB in 4s (13,5 MB/s)
Download complete and in download only mode
Zu einem späteren Zeitpunkt, wenn Sie offline sind, können Sie sudo apt-get dist-upgrade
die Installation abschließen. (Beachten Sie die Notwendigkeit, 0 B / 67,0 MB Archive zu erhalten. )
$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-3.19.0-39 linux-headers-3.19.0-39-generic linux-image-3.19.0-39-generic linux-image-extra-3.19.0-39-generic
linux-signed-image-3.19.0-39-generic
The following packages will be upgraded:
keepassx linux-headers-generic linux-libc-dev linux-signed-generic linux-signed-image-generic
5 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/67,0 MB of archives.
After this operation, 289 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Es funktioniert auch mit install
oder anderen Befehlen:
$ sudo apt-get install -d libpcap-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libpcap0.8-dev
The following NEW packages will be installed:
libpcap-dev libpcap0.8-dev
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 214 kB of archives.
After this operation, 749 kB of additional disk space will be used.
Do you want to continue? [J/n]
Get:1 http://nl.archive.ubuntu.com/ubuntu/ vivid/main libpcap0.8-dev amd64 1.6.2-2 [210 kB]
Get:2 http://nl.archive.ubuntu.com/ubuntu/ vivid/main libpcap-dev all 1.6.2-2 [3448 B]
Fetched 214 kB in 0s (1776 kB/s)
Download complete and in download only mode
So löschen Sie den Cache (gespeichert in /var/cache/apt/archives
):
sudo apt-get clean
apt-get autoremove
(undaptitude
).