Information Technology Reference
In-Depth Information
$
sudo dpkg -i chefdk_0.2.0-2_amd64.deb
The Chef Development Kit installer will automatically install Chef and Ruby in the
/opt/
chefdk/embedded
directory on your local machine. Neither of these directories are commonly
present in the default environment's
PATH
.
The Chef Development Kit includes a
chef shell-init
command to modify the current
shell environment to use these paths. Assuming you are using the Linux default
bash
shell,
run the following command to permanently enable this PATH setting:
Chef Development Kit installation:
$
echo 'eval "$(chef shell-init bash)"' >> ~/.bash_profile
If it was necessary to choose the Chef Client installation instead, the Chef and Ruby installa-
tion will be located under
/opt/chef/embedded
.
We recommend you add this
bin
location to the following
PATH
. You should add this line to
your
$HOME/.bash_profile
(or similar
*.profile
if you are using a different command
line shell).
Chef Client installation:
export
PATH
=
"/opt/chef/embedded/bin:$PATH"
Once you change
$HOME/.bash_profile
, you will need to
source
the file to set up the cor-
rect
$PATH
. Alternatively, you can just close and open your terminal application to reload
$HOME/.bash_profile
.
$
source $HOME/.bash_profile
Verify the Chef Development Kit/Chef Client Install on Linux
Make sure the Ruby scripting engine in either
/opt/chefdk/embedded/bin
or
/opt/chef/embed-
ded/bin
is being used with this
$PATH
change, depending on whether you installed the Chef
Development Kit or the Chef Client, respectively. Enter
which ruby
in a terminal or com-
mand prompt. You should see the following:
Chef Development Kit installation: