# Offline Installation of Netdata

**URL:** <https://community.netdata.cloud/t/offline-installation-of-netdata/3892>\
**Category:** Help\
**Created:** [February 24, 2023, 12:21pm UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892 "2023-02-24T12:21:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kubilayodine](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@kubilayodine](https://community.netdata.cloud/u/kubilayodine)\
**Post date:** [February 24, 2023, 12:21pm UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892/1 "2023-02-24T12:21:57Z")

</div>

Hi,

We were using netdata agent in our environment with following version.

# netdata -v

netdata v1.18.1

But we wanted to install new version of netdata in order to test it.

We have followed instructions from the offical documents for offline installation of netdata.

> **[Install Netdata on Offline Systems | Learn Netdata](https://learn.netdata.cloud/docs/netdata-agent/installation/linux/offline-systems)**
>
> Install the Netdata Agent on offline/air gapped systems to benefit from real-time, per-second monitoring without connecting to the internet.

We have first prepared files with following command and then transferred them to the offline nodes from our local machines.  
wget -O /tmp/netdata-kickstart.sh [https://my-netdata.io/kickstart.sh](https://my-netdata.io/kickstart.sh) && sh /tmp/netdata-kickstart.sh --prepare-offline-install-source ./netdata-offline

And then basically we have used “install.sh” script as it is described.

Installation is completed but installation is done to the “/opt” directory instead of “/etc” directory.  
That’s why netdata commands do not work. We believe installation is not healthy in this way.

Previously, we were using “–local-files” option with kickstart.sh script and we were specifying netdata tar ball, checksum file, go.d plugin tarball and config files with netdata 1.18 version.  
But “–local-files” option does not work with the current kickstart.sh/netdata\_installar.sh for netdata 1.38 version.  
Do you have any comments on this case ? How can we specify specific tarbal of specific netdata version without “–local-files” option?

Thank you in advance all.

---

<div class="post-metadata">

**Author:** ![Manolis\_Vasilakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/manolis_vasilakis/32/820_2.png) [@Manolis\_Vasilakis](https://community.netdata.cloud/u/Manolis_Vasilakis)\
**Post date:** [February 24, 2023, 12:51pm UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892/2 "2023-02-24T12:51:45Z")

</div>

Hi @kubilayodine

What distribution are you using? I’m guessing kickstart decided that a static install (what you get in /opt) is the best for this case. Installation is ok using this way in fact, nothing being “less” than an install on system directories.

---

<div class="post-metadata">

**Author:** ![kubilayodine](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@kubilayodine](https://community.netdata.cloud/u/kubilayodine)\
**Post date:** [February 27, 2023, 6:54am UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892/3 "2023-02-27T06:54:54Z")

</div>

Hi Manolis,

Can we specify installation path during the offline install ?  
For instance, we want to try specifing installation path to “/etc/netdata”.

---

<div class="post-metadata">

**Author:** ![Manolis\_Vasilakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/manolis_vasilakis/32/820_2.png) [@Manolis\_Vasilakis](https://community.netdata.cloud/u/Manolis_Vasilakis)\
**Post date:** [March 2, 2023, 1:34pm UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892/4 "2023-03-02T13:34:36Z")

</div>

Hi @kubilayodine

We will have a look about the –local-files and offline installation for 1.38.1, not sure yet what’s going on there.

The static install that you got now though, can only be installed on /opt/.

---

<div class="post-metadata">

**Author:** ![kubilayodine](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@kubilayodine](https://community.netdata.cloud/u/kubilayodine)\
**Post date:** [March 3, 2023, 10:01am UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892/5 "2023-03-03T10:01:36Z")

</div>

Hi,

It gives following error when I try to use “–local-files” option with current kickstart.sh.

[root@compute08 netdata\_offline]# bash kickstart.sh --local-files /tmp/netdata\_offline/netdata-v1.38.1.tar.gz /tmp/netdata\_offline/sha256sums.txt /tmp/netdata\_offline/go.d.plugin-v0.50.0.linux-amd64.tar.gz /tmp/netdata\_offline/config.tar.gz /tmp/netdata\_offline/install-required-packages.sh --dont-wait  
kickstart.sh: line 34: cd: kickstart.sh: Not a directory

ABORTED Unrecognized option ‘–local-files’. If you intended to pass this option to the installer code, please use either --local-build-options or --static-install-options to specify it instead.

For community support, you can connect with us on:

- GitHub: [netdata/netdata · Discussions · GitHub · GitHub](https://github.com/netdata/netdata/discussions)
- Discord: [Netdata](https://discord.gg/5ygS846fR6)
- Our community forums: [https://community.netdata.cloud/](https://community.netdata.cloud/)

---

<div class="post-metadata">

**Author:** ![Tasos\_Katsoulas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/tasos_katsoulas/32/1344_2.png) [@Tasos\_Katsoulas](https://community.netdata.cloud/u/Tasos_Katsoulas)\
**Post date:** [March 8, 2023, 4:09pm UTC](https://community.netdata.cloud/t/offline-installation-of-netdata/3892/6 "2023-03-08T16:09:42Z")

</div>

@kubilayodine

following up on this thread, let me clarify the followings.

1. We support an offline installation with the `--prepare-offline-install-source [OUTPUT_FOLDER]` option (download the latest kickstart script into the guest machine)

2. This gives you an archive with all of our static builds (for multiple [supported architectures](https://learn.netdata.cloud/docs/installation/platform-support-policy#static-builds)) for a specific release channel inside the `[OUTPUT_FOLDER]`

3. This option mutates any other options (mostly the install options) except of the `--stable-channel`, `--nightly-channel` ( this is the default). You can double down the channel for the artifacts you downloaded by checking the file `[OUTPUT_FOLDER]/channel`

As far as this.

> bash kickstart.sh --local-files /tmp/netdata\_offline/netdata-v1.38.1.tar.gz /tmp/netdata\_offline/sha256sums.txt /tmp/netdata\_offline/go.d.plugin-v0.50.0.linux-amd64.tar.gz /tmp/netdata\_offline/config.tar.gz /tmp/netdata\_offline/install-required-packages.sh --dont-wait  
> kickstart.sh: line 34: cd: kickstart.sh: Not a directory
> 
> ABORTED Unrecognized option ‘–local-files’. If you intended to pass this option to the installer code, please use either --local-build-options or --static-install-options to specify it instead.

If you offload the offline installation archive into the target (offline) node. You can either use the install.sh or the kickstart with the `--offline-install-source [FOLDER_OF_THE_ARCHIVE]`. Prefer`install.sh` which actually calls the kickstart (already present) with the `--offline-install-source` option (this is the new option, instead of the `--local-files` you used).

Hope I helped.
