Private
Public Access
11
1

Update Installing Packages without Internet Access

2024-10-31 06:30:11 +01:00
parent 8e4d6901aa
commit 9ff799e47b

@@ -2,6 +2,7 @@
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: \
@@ -40,4 +41,6 @@ If you can't find the exact .deb file that was asked for, then you can substitut
e.g. `python3-numpy_1.24.2-1_amd64.deb` => `python3-numpy_1.24.2-1+deb12u1_amd64.deb`
Here, the addition of +deb12u1 is indicating that the package is for Debian Linux version 12, update 1.
Be sure to run: \
`$sudo apt-get --no-download --fix-missing --fix-broken install` \
after each successful use of `dpkg -i ` so that the force-installed packages get registered by the apt package manager.