Once you have configured your system so APT / YUM are aware of one of our package repositories it's time to begin deploying code. If this does not happen then please see the Adding repositories locally documentation.
Below are the normal APT and YUM commands to install packages with their dependencies. We have also included some helpful ways to clear caches and list repositories and packages in case you can't see what you expect.
APT - Debian based
$ apt install <package-name>
If you can't see your package or its latest version
# Make APT get the latest packages $ apt update
List all of the packages APT is aware of for your repo
$ apt update # Replace 'myorg' with the name of your organisation lowercase $ grep '^Package:' /var/lib/apt/lists/pkgdeploy-repo*
If you see the errors:
... The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7CB995C4187EA154 .. InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
You need to add the PKG Deploy public key to APT using
wget -qO - https://www.pkgdeploy.com/pkgdeploy_gpg.asc | apt-key add -
YUM - RPM based
$ yum install package-name
If you can't see your package or it's latest version
$ yum clean expire-cache
Make sure YUM can see your repo and lists the packages within it
$ yum clean expire-cache $ yum repolist # List all of the repository on the machine $ yum repo-pkgs myorg-pkgdeploy list # List packages in your repository
Here is an example of a package called
pkgdeploy-helloworld being installed via APT on a Ubuntu server