Removal of Old webOS TV SDK

Before installing webOS TV tools, you may need to uninstall old deprecated tools to make sure the new to-be-installed tools work properly without interference.

This page guides you on uninstalling old deprecated tools as preparation for installing webOS TV tools.

Preparation for installing webOS CLI

Uninstall webOS TV or webOS OSE CLI

If you have installed webOS TV CLI or webOS OSE CLI, which are now deprecated, you first need to uninstall them before installing webOS CLI.

  1. Check if webOS TV CLI or webOS OSE CLI is installed.

    You can check if webOS TV CLI or webOS OSE CLI is installed using the ares -V command. If you see the version as in the following, you need to uninstall the existing CLI.

    $ ares -V 
    webOS TV CLI Version: 1.12.4-j27
    $ ares -V
    webOS OSE CLI Version: 2.3.1
  2. Uninstall the old CLI

    • Uninstall webOS TV CLI

      Delete the installed CLI directory using the following command. (Replace "YOUR_PATH" with the path of the existing CLI directory.)

      • For Windows

        $ rmdir /S "C:\YOUR_PATH\webOS_TV_SDK\CLI"
      • For Linux or macOS

        $ rm -rf "/YOUR_PATH/webOS_TV_SDK/CLI"
    • Uninstall webOS OSE CLI

      $ npm uninstall -g @webosose/ares-cli
  3. Verify if CLI(s) are successfully uninstalled.

    Check if any CLI exists with the ares -V command. If you see the following output, it means no old CLIs exist.

    $ ares -V
     ares: command not found

Preparation for installing webOS Studio

If you have installed and used webOS TV tools with webOS TV CLI before, you need to clean them up as preparation for installing webOS Studio. Then, you can install tools you need with webOS Studio | Package Manager, and in that way, you can control them with its commands.

Uninstall webOS TV or webOS OSE CLI

See Uninstall webOS TV or webOS OSE CLI.

Uninstall webOS TV or webOS OSE Extension for VS Code

  1. Run VS Code.

  2. Click on the Extensions icon in the Activity Bar to bring up the Extensions view on the side.

  3. Click the Manage gear button at the right of the webOS TV or 'webOS OSE' extension entry and then choose Uninstall from the dropdown menu.

Uninstall webOS TV Simulator

Delete the Simulator directory where the simulator(s) is installed.

Uninstall webOS TV Emulator

  1. Remove the virtual machine.

    • Windows

      a. Go to the Emulator/vX.0.0 directory, where X is the version to install.

      b. Run vm_remove.bat.

    • Linux

      Run the terminal and execute the following commands.

      $ cd /LG_WEBOS_TV_SDK_HOME_PATH/Emulator/vX.0.0
      $ ./vm_remove.sh
      $ sudo desktop-file-install webOS_TV_Emulator_vX.0.0.desktop
    • macOS

      Run the terminal and execute the following commands.

      $ cd /LG_WEBOS_TV_SDK_HOME_PATH/Emulator/vX.0.0
       $ ./vm_register.command
  2. Remove the path directory of LG_WEBOS_TV_SDK_HOME.

    a. Check the LG_WEBOS_TV_SDK_HOME variable using the echo command.

    • Windows
      echo %LG_WEBOS_TV_SDK_HOME%
    • Linux or macOS
      echo $LG_WEBOS_TV_SDK_HOME

    b. Remove the directory.

    • Windows
      rmdir LG_WEBOS_TV_SDK_HOME_PATH  /s /q
    • Linux or macOS
      rm -rf LG_WEBOS_TV_SDK_HOME_PATH
  3. Remove environment variables.

    • Windows

      a. Click the Start button and type environment properties into the search bar.
      b. In the dialog box, click Environment Variables on the bottom right.
      c. In the Environment variables dialog box, under System variables, delete LG_WEBOS_TV_SDK_HOME and WEBOS_CLI_TV.
      d. Under System variables, select Path and click Edit.
      e. Remove the directory which contains the WEBOS_CLI_TV directory.

    • Linux or macOS
      Remove the following lines at /etc/profile or /etc/zprofile.

      # Setting the LG_WEBOS_TV_SDK_HOME variable to the parent directory of CLI
      export LG_WEBOS_TV_SDK_HOME="/YOUR_PATH/webOS_TV_SDK"
            
      if [ -d "$LG_WEBOS_TV_SDK_HOME/CLI/bin" ]; then
        # Setting the WEBOS_CLI_TV variable to the bin directory of CLI
        export WEBOS_CLI_TV="$LG_WEBOS_TV_SDK_HOME/CLI/bin"
        # Adding the bin directory of CLI to the PATH variable
        export PATH="$PATH:$WEBOS_CLI_TV"
      fi
No Headings