How To Install golang-github-docker-slim on Fedora 36

In this tutorial we learn how to install golang-github-docker-slim in Fedora 36. golang-github-docker-slim is Minify your Docker container image by up to 30x

Introduction

In this tutorial we learn how to install golang-github-docker-slim on Fedora 36.

What is golang-github-docker-slim

DockerSlim and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source).

We can use yum or dnf to install golang-github-docker-slim on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-docker-slim.

Install golang-github-docker-slim on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install golang-github-docker-slim using dnf by running the following command:

sudo dnf -y install golang-github-docker-slim

Install golang-github-docker-slim on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install golang-github-docker-slim using yum by running the following command:

sudo yum -y install golang-github-docker-slim

How To Uninstall golang-github-docker-slim on Fedora 36

To uninstall only the golang-github-docker-slim package we can use the following command:

sudo dnf remove golang-github-docker-slim

golang-github-docker-slim Package Contents on Fedora 36

/usr/bin/docker-slim
/usr/bin/docker-slim-sensor
/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/3eb7a67727cf51ed8d2dbf5c23f92fc6d72e1a
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/9bc52b6de2ed58403e6d8d4aa67f31afc00521
/usr/share/doc/golang-github-docker-slim
/usr/share/doc/golang-github-docker-slim/CHANGELOG.md
/usr/share/doc/golang-github-docker-slim/CONTRIBUTING.md
/usr/share/doc/golang-github-docker-slim/README.md
/usr/share/doc/golang-github-docker-slim/WISHLIST.md
/usr/share/doc/golang-github-docker-slim/examples
/usr/share/doc/golang-github-docker-slim/examples/artifacts
/usr/share/doc/golang-github-docker-slim/examples/artifacts/Dockerfile.fat
/usr/share/doc/golang-github-docker-slim/examples/artifacts/creport.json
/usr/share/doc/golang-github-docker-slim/examples/artifacts/my-ruby-rails-app-apparmor-profile
/usr/share/doc/golang-github-docker-slim/examples/artifacts/my-ruby-rails-app-seccomp.json
/usr/share/doc/golang-github-docker-slim/examples/artifacts/ruby-rails-app.slim.report.json
/usr/share/licenses/golang-github-docker-slim
/usr/share/licenses/golang-github-docker-slim/LICENSE

References

Summary

In this tutorial we learn how to install golang-github-docker-slim on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).