How to Install and Uninstall crane Package on openSuSE Tumbleweed

Last updated: November 23,2024

1. Install "crane" package

Please follow the instructions below to install crane on openSuSE Tumbleweed

$ sudo zypper refresh $ sudo zypper install crane

2. Uninstall "crane" package

Please follow the guidelines below to uninstall crane on openSuSE Tumbleweed:

$ sudo zypper remove crane

3. Information about the crane package on openSuSE Tumbleweed

Information for package crane:
------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : crane
Version : 0.17.0-1.2
Arch : x86_64
Vendor : openSUSE
Installed Size : 10.5 MiB
Installed : No
Status : not installed
Source package : go-containerregistry-0.17.0-1.2.src
Upstream URL : https://github.com/google/go-containerregistry
Summary : CLI tool for interacting with remote images and registries
Description :
Useful tips and things you can do with crane and other standard tools.
List files in an image
crane export registry.opensuse.org/opensuse/tumbleweed - | tar -tvf - | less
Export a file from an image
crane export registry.opensuse.org/opensuse/tumbleweed - | tar -0xf - etc/passwd
Diff two configs
diff -u <(crane config busybox:1.32 | jq) <(crane config busybox:1.33 | jq)
Diff two manifests
diff -u <(crane manifest busybox:1.32 | jq) <(crane manifest busybox:1.33 | jq)
Diff filesystem contents
diff -u \
<(crane export gcr.io/kaniko-project/executor:v1.6.0-debug - | tar -tvf - | sort) \
<(crane export gcr.io/kaniko-project/executor:v1.7.0-debug - | tar -tvf - | sort)