Install “crudini” Package on Ubuntu

Crudini is a utility to simplify reading and updating ini files from shell scripts, so named as it provides CRUD functionality. It can handle most variants of ini.


Quick Install Instructions of crudini on Ubuntu Server. It’s Super Easy!

See below for quick step by step instructions of SSH commands


Step 1: Run update command to update package repositories and get latest package information.

sudo apt-get update -y

Step 2: Install Crudini

Run the install command with -y flag to quickly install the packages and dependencies.

sudo apt-get install -y crudini

Interfaces synopsis

crudini --set [--existing] config_file section [param] [value]
        --get [--format=sh|ini|lines] config_file [section] [param]
        --del [--existing] config_file section [param] [list value]
        --merge [--existing] config_file [section]


  • Add/Update a var
    crudini –set config_file section parameter value
  • Update an existing var
    crudini –set –existing config_file section parameter value
  • Add/Append a value to a space or comma separated list
    crudini –set –list config_file section parameter a_value
  • update an ini file from shell variable(s)
    echo name=”$name” | crudini –merge config_file section
  • merge an ini file from another ini
    crudini –merge config_file < another.ini
  • Delete a var
    crudini –del config_file section parameter
  • Delete a section
    crudini –del config_file section
  • output a value
    crudini –get config_file section parameter
  • output a global value not in a section
    crudini –get config_file ” parameter
  • output a section
    crudini –get config_file section
  • output a section, parseable by shell
    eval $(crudini –get –format=sh config_file section)
  • output an ini processable by text utils
    crudini –get –format=lines config_file