Update Installing Packages without Internet Access
@@ -1,12 +1,16 @@
|
||||
---
|
||||
title: 'Installing Packages without Internet Access '
|
||||
---
|
||||
Sometimes you need to install an extra package (or a hundred). If the machine is has access to the internet, then a simple `sudo apt-get install <package_name>` is all that is needed. However, it is not so simple when the machine doesn't have internet access. Here is a method for transferring the required package files with a USB drive.
|
||||
|
||||
get initial package list:
|
||||
|
||||
`$apt-get --print-uris --yes install <my_package_names> | grep ^\' | cut -d\' -f2 >downloads.list`
|
||||
|
||||
Note that it will not append, so do it all in one go.
|
||||
|
||||
Take downloads.list to an internet-accessible computer and run:
|
||||
`$curl --remote-name-all $(cat downloads.list)`
|
||||
```$curl --remote-name-all $(cat downloads.list)```
|
||||
|
||||
This will fill the current directory with downloaded .deb files.
|
||||
Beware that when a file is not found, it will silently download an "error 404" html page into the *.deb file. You can recognise them by being smaller than 280 bytes. Try downloading them from a different repository.
|
||||
|
||||
Reference in New Issue
Block a user