Many webpages have all kinds of instructions to do cool things and these instructions needs to do "apt-get...", but what if this Raspberry is not online?
Is there any way to install/update apps without net?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
Note: Both methods I describe require another device with internet connectivity.
I've ordered these by sustainability, which (perhaps not) coincidentally means that it also is sorted hardest to easiest.
If the RasPi can only access a LAN but not the internet (ex: firewall), then on another device on the LAN that has internet connectivity, you could setup a Debian Mirror and then point
apt-get to use that mirror as that article describes. Make sure when you're setting up
/etc/apt/mirror.list that you set
defaultarch armel armhf
Otherwise you'll get a bunch of others architectures (a lot more to download). The benefit with this setup is that you'll always be able to get the latest packages (through the mirror) even if the RasPi never gets internet connectivity. The downside is that to mirror, you'll need quite a bit of free space.
apt-offline is a useful tool similar to moving
.debs around, but it uses
apt to manage the package, meaning if the RasPi gets internet later, you can remove/update/etc the package like you normally would with
apt-get. The benefits of this method is that it will likely be quicker to get running, but won't be sustainable if you plan on installing a lot of packages or updating often.
If the RasPi has no network connectivity whatsoever, then you could download the
.deb files from another internet connected computer and then transfer them to the RasPi (via flash drive, etc) and then use
sudo dpkg -i package_file.deb to install them.
You can download the .deb files from the following. You may have to check both links for a specific package, but prefer
armhf if both have the package.