# Option to install only ledger in \`dfx nns install/import\`

**URL:** <https://forum.dfinity.org/t/option-to-install-only-ledger-in-dfx-nns-install-import/30597>\
**Category:** Command Line Tools\
**Created:** [May 10, 2024, 6:49am UTC](https://forum.dfinity.org/t/option-to-install-only-ledger-in-dfx-nns-install-import/30597 "2024-05-10T06:49:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZenVoich](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zenvoich/32/5969_2.png) [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Post date:** [May 10, 2024, 6:49am UTC](https://forum.dfinity.org/t/option-to-install-only-ledger-in-dfx-nns-install-import/30597/1 "2024-05-10T06:49:04Z")

</div>

I want to simply install ICP ledger locally, but I cannot do `dfx nns import ledger`.  
Only `dfx nns import` which installs all nns canisters that I don’t need.

Also `dfx nns install` doesn’t work:

```auto
Checking out the environment...
Error: Failed to install NNS components.

Caused by:
    0: Failed to verify that the local replica type is 'system'.
    1: The replica subnet_type needs to be 'system' to run NNS canisters. Current value: Ok(Application).
       
                    You can configure it by setting local.replica.subnet_type to "system" in your global networks.json:
       
                    1) Create or edit: /Users/zen/.config/dfx/networks.json
                    2) Set the local config to:
                        {
                          "local": {
                            "bind": "127.0.0.1:8080",
                            "type": "ephemeral",
                            "replica": {
                              "subnet_type": "system"
                            }
                          }
                        }
                    3) Verify that you have no network configurations in dfx.json.
                    4) Restart dfx:
                        dfx stop
                        dfx start --clean

```

Can these steps be skipped if I want to install just a ledger?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [May 10, 2024, 7:03am UTC](https://forum.dfinity.org/t/option-to-install-only-ledger-in-dfx-nns-install-import/30597/2 "2024-05-10T07:03:06Z")

</div>

You can have a look at Oisy’s repo. I use a script to download and install the ICP ledger and index.

- Download: [https://github.com/dfinity/oisy-wallet/blob/main/scripts/download.icp.sh](https://github.com/dfinity/oisy-wallet/blob/main/scripts/download.icp.sh)
- Install ledger: [https://github.com/dfinity/oisy-wallet/blob/main/scripts/deploy.icp\_ledger.sh](https://github.com/dfinity/oisy-wallet/blob/main/scripts/deploy.icp_ledger.sh)
- Install index: [https://github.com/dfinity/oisy-wallet/blob/main/scripts/deploy.icp\_index.sh](https://github.com/dfinity/oisy-wallet/blob/main/scripts/deploy.icp_index.sh)

Note that I think this might also be documented somewhere on the website.

---

<div class="post-metadata">

**Author:** ![ZenVoich](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zenvoich/32/5969_2.png) [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Post date:** [May 10, 2024, 7:20am UTC](https://forum.dfinity.org/t/option-to-install-only-ledger-in-dfx-nns-install-import/30597/3 "2024-05-10T07:20:33Z")

</div>

Yes, I did it manually with commit hash. But I think it would be cool to be able to do it with just one command. For new developers, ICP ledger is probably most demanded canister for local deployment and I think it should be very simple and require least steps to deploy and start playing with it.
