From c78b33d942531d78f8693318de5bb384a022f9f4 Mon Sep 17 00:00:00 2001 From: watts Date: Thu, 31 Oct 2024 06:22:46 +0100 Subject: [PATCH] Update Installing Packages without Internet Access --- SneakerNetUpdates.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SneakerNetUpdates.md b/SneakerNetUpdates.md index a2d479b..8ad6ed1 100644 --- a/SneakerNetUpdates.md +++ b/SneakerNetUpdates.md @@ -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 ` 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 | 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.