@bartatantergos said in How to install applications in Antergos offline from USB key?:
Can i download an application, put it on a USB key and (at least first time) install it in Antergos without messing up my system?..
Yes, you can.
One note though. Strictly speaking, neither Arch nor Antergos know an “applications” entity. Both work exclusively with packages. An “application” may be represented either by only one package or by some dozens of packages. In the latter case, one package may be defined as “main”, and it pulls down, by dependencies, all other needed packages.
If an application is represented by only one package, download it at work onto USB key and, once at home, install it in terminal with
sudo pacman -U /path/to/package/package-name
There’s no need to type in the path and package name by hand. Simply drag&drop the package from file manager into terminal window. Path and name will be entered automagically.
If an application is represented by many packages, you’ll need to download all of them onto USB key. Put all of them into a single directory. The best way to find out all needed packages is to start installing it (but not concluding) with pacman:
sudo pacman -S package-name
Pacman will list all other packages needed to complete the installation. For offline installation you’ll need to download all of them.
Once all needed packages have been collected on the USB key, you proceed exactly the same way as for single-package apps:
sudo pacman -U /path/to/package/main-package-name
In case of multi-package app do NOT install all downloaded packages by hand, one by one. Start with main-package-name. Pacman will look for other packages it needs in the same directory on the key, and will install them automatically.