If you are looking to install wget in dockerfile or container image, the following code may help you. You can change version 22.04 as per your requirement. FROM ubuntu:22.04 RUN apt-get update \\ && apt-get install -y wget \\ && rm -rf /var/lib/apt/lists/*