Installation
note
Currently packageless is only able to be installed by compiling from source and manually going through the steps to install it.
There are plans to make it so that you can install packageless in a much easier way in the future.
Unix
To install on a unix-based system (including Mac) you can run the installer shell script by running the following command:
curl -s https://raw.githubusercontent.com/everettraven/packageless/main/unixInstaller.sh | shWindows
To install on Windows, run the following PowerShell command to run the installer PowerShell script:
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/everettraven/packageless/main/windowsInstaller.ps1'))Install from Source
Install Docker#
Currently packageless relies on having Docker installed. In the future, packageless will support multiple different container runtime options.
You can install Docker by following their installation instructions at: https://docs.docker.com/get-docker/
Building from source#
Install Go#
Since we are compiling from source and packageless is written in Go, you will need to make sure you have Go installed.
Go installation instructions can be found at: https://golang.org/doc/install
Install Git or Download Source#
Since we currently only support compiling from source, you will need to either have Git installed or download the source code directly from Github. We recommend using Git.
To install Git follow their installation instructions at: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
If you are using Git, once it is installed you can run (in a terminal window):
git clone https://github.com/everettraven/packageless.gitto download the source code.
If you prefer to download the source code from Github you will have to make sure that you unzip the folder contents.
Building packageless#
In a terminal window (on Windows we recommend PowerShell), navigate into the packageless directory and run:
go buildIf you are on Windows, this command should create a file named packageless.exe If you are on Unix, this command should create a file named packageless
Installing packageless#
Now lets ensure the proper directories are created.
On Unix, if it doesn't exist, make the necessary directories by running:
mkdir ~/binmkdir ~/.packagelessOn Windows, if it doesn't exist, make the necessary directories by running:
Command Prompt:
mkdir %USERPROFILE%\\binmkdir %USERPROFILE%\\.packagelessPowerShell:
mkdir ~/binmkdir ~/.packagelessNow copy the necessary files to the proper directories
On Unix run:
cp packageless ~/bincp config.hcl ~/.packagelessOn Windows run:
Command Prompt
copy packageless.exe %USERPROFILE%\\bincopy config.hcl %USERPROFILE%\\.packagelessPowerShell:
Copy-Item .\packageless.exe -Destination ~/binCopy-Item .\config.hcl -Destination ~/.packagelessNow we need to set the system PATH variable to contain the directory we are storing the packageless files in
note
Make sure you replace "shell" with the shell you're using.
For example, if you are using Bash it would be: ~/.bashrc
On Unix you will need to add the following line at the end of your ~/."shell"rc file:
export PATH=$PATH:~/bin/packagelessand then run:
source ~/."shell"rcOn Windows run:
Command Prompt & PowerShell:
setx PATH "%PATH%;%USERPROFILE%\bin\packagelesspackageless should now be installed on your machine!