In ApmPKG we have 2 ways to install packages, obviously already made before as stated in creating packages to share these packages can be done from a [.adi file](creating_packages.md # adi), file .abc and/or from a binary file (.abi.tar.gz) made by yourself or someone else. Although it is the same for all possible files. Let's see the installation modes:
Table of Contents:
As we will remember, a .adi file is nothing more than a document with TOML syntax for the creation of packages written in some scripting language, also for other languages, but this is its recommended use. To install from a .adi file you can type the following command:
# apmpkg instalar foo.adi
The installation of said packages will begin immediately, what this process does is download and install dependencies as well as dependencies of pip or bundle, as the case may be, once this step is carried out, the next thing to do is install the files specified in this file and thus conclude with the installation.
If you want to install from a web-hosted .adi file, you can perform the following command:
# apmpkg instalar -u https://foo.com/bar.adi
This only downloads the specified file and will proceed to the install function as in the process above.
The .ABC files are the ones that will be seen the most from the panorama from this tool, this type of files are read by [iiabc](./creando_paquetes_en.md # abc) that we had agreed in creating packages this is a file similar or the same as a PKGBUILD from archlinux, but of course we have certain problems with the compatibility of ALL existing PKGBUILD's, but we will continue working so that it is not so. To install from an .ABC file, we can execute the following command:
# apmpkg instalar foo.abc
In the same way, the same command is used:
# apmpkg instalar -u https://foo.com/bar.abc
The .ABI.TAR.GZ files are for an offline installation to be possible, this is where you have all the files necessary for an installation and metadata of the package to be interpreted by apmpkg, as everything here with this article is used the same command for everything, even so in case there is any doubt we must make it clear. For installation from an ABI.TAR.GZ file:
# apmpkg instalar foo.abi.tar.gz
Similarly, the command is the same. ApmPKG downloads the specified file and starts the installation process with this type of file, in a normal way, as it does not affect whether it has been created from an ADI or an ABC, ApmPKG will know what type of file is with which this package was made And in the same way it will install the files, to install with the ADI file that is hosted on some website can be done with the following command:
# apmpkg instalar -u https://foo.com/bar.abi.tar.gz
En conclusion:
# apmpkg instalar foo.bar
if it is a local installation, that is, you already have the file on your computer and if not: # apmpkg instalar -u https://foo.com/bar.bar