wimoptimize command not found

In this troubleshooting guide we learn how to fix wimoptimize command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

wimoptimize: command not found

or when using sudo you get the following error message

sudo: wimoptimize: command not found

Solutions to wimoptimize: command not found

How To Fix wimoptimize: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu wimoptimize is provided by wimtools package.

wimtools is:

WIM is an archive format designed primarily for archiving Windows filesystems. It features single-instancing and LZ77-based compression, and is used by Microsoft to distribute and deploy Windows Vista and later.

This package contains a free implementation of the ImageX utility that is used to create WIM files on Windows.

To fix this problem, we can install more using the command below.

sudo apt-get -y install wimtools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install wimtools.

sudo apt -y install wimtools

Or if you have aptitude installed you can use the following command.

sudo aptitude install wimtools

Summary

In this tutorial we learn how to fix wimoptimize command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.