How To Install zypper on Fedora 34

zypper is Command line package manager using libzypp

Introduction

In this tutorial we learn how to install zypper on Fedora 34.

What is zypper

Zypper is a command line package manager tool using libzypp, which can be used to manage software for RPM based systems.

We can use yum or dnf to install zypper on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install zypper.

Install zypper on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install zypper using dnf by running the following command:

sudo dnf -y install zypper

Install zypper on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install zypper using yum by running the following command:

sudo yum -y install zypper

How To Uninstall zypper on Fedora 34

To uninstall only the zypper package we can use the following command:

sudo dnf remove zypper

zypper Package Contents on Fedora 34

/etc/logrotate.d/zypp-refresh.lr
/etc/logrotate.d/zypper.lr
/etc/zypp/zypper.conf
/usr/bin/installation_sources
/usr/bin/zypp-needs-restarting
/usr/bin/zypper
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/01e2b16d7226f65c6b0268f40604c5dc2212fd
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/5690eb9f3b0f454afb929c5d6c326b9210dcc9
/usr/libexec/zypper
/usr/libexec/zypper/commands
/usr/sbin/zypp-refresh
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/zypper
/usr/share/doc/zypper/HACKING
/usr/share/licenses/zypper
/usr/share/licenses/zypper/COPYING
/usr/share/locale/af/LC_MESSAGES/zypper.mo
/usr/share/locale/ar/LC_MESSAGES/zypper.mo
/usr/share/locale/ast/LC_MESSAGES/zypper.mo
/usr/share/locale/be/LC_MESSAGES/zypper.mo
/usr/share/locale/bg/LC_MESSAGES/zypper.mo
/usr/share/locale/bn/LC_MESSAGES/zypper.mo
/usr/share/locale/bs/LC_MESSAGES/zypper.mo
/usr/share/locale/ca/LC_MESSAGES/zypper.mo
/usr/share/locale/cs/LC_MESSAGES/zypper.mo
/usr/share/locale/cy/LC_MESSAGES/zypper.mo
/usr/share/locale/da/LC_MESSAGES/zypper.mo
/usr/share/locale/de/LC_MESSAGES/zypper.mo
/usr/share/locale/el/LC_MESSAGES/zypper.mo
/usr/share/locale/en_GB/LC_MESSAGES/zypper.mo
/usr/share/locale/es/LC_MESSAGES/zypper.mo
/usr/share/locale/et/LC_MESSAGES/zypper.mo
/usr/share/locale/fa/LC_MESSAGES/zypper.mo
/usr/share/locale/fi/LC_MESSAGES/zypper.mo
/usr/share/locale/fr/LC_MESSAGES/zypper.mo
/usr/share/locale/gl/LC_MESSAGES/zypper.mo
/usr/share/locale/gu/LC_MESSAGES/zypper.mo
/usr/share/locale/he/LC_MESSAGES/zypper.mo
/usr/share/locale/hi/LC_MESSAGES/zypper.mo
/usr/share/locale/hr/LC_MESSAGES/zypper.mo
/usr/share/locale/hu/LC_MESSAGES/zypper.mo
/usr/share/locale/id/LC_MESSAGES/zypper.mo
/usr/share/locale/ie/LC_MESSAGES/zypper.mo
/usr/share/locale/it/LC_MESSAGES/zypper.mo
/usr/share/locale/ja/LC_MESSAGES/zypper.mo
/usr/share/locale/ka/LC_MESSAGES/zypper.mo
/usr/share/locale/km/LC_MESSAGES/zypper.mo
/usr/share/locale/ko/LC_MESSAGES/zypper.mo
/usr/share/locale/ku/LC_MESSAGES/zypper.mo
/usr/share/locale/lt/LC_MESSAGES/zypper.mo
/usr/share/locale/mr/LC_MESSAGES/zypper.mo
/usr/share/locale/nb/LC_MESSAGES/zypper.mo
/usr/share/locale/nl/LC_MESSAGES/zypper.mo
/usr/share/locale/nn/LC_MESSAGES/zypper.mo
/usr/share/locale/pa/LC_MESSAGES/zypper.mo
/usr/share/locale/pl/LC_MESSAGES/zypper.mo
/usr/share/locale/pt/LC_MESSAGES/zypper.mo
/usr/share/locale/pt_BR/LC_MESSAGES/zypper.mo
/usr/share/locale/ro/LC_MESSAGES/zypper.mo
/usr/share/locale/ru/LC_MESSAGES/zypper.mo
/usr/share/locale/sk/LC_MESSAGES/zypper.mo
/usr/share/locale/sl/LC_MESSAGES/zypper.mo
/usr/share/locale/sr/LC_MESSAGES/zypper.mo
/usr/share/locale/sv/LC_MESSAGES/zypper.mo
/usr/share/locale/ta/LC_MESSAGES/zypper.mo
/usr/share/locale/th/LC_MESSAGES/zypper.mo
/usr/share/locale/tr/LC_MESSAGES/zypper.mo
/usr/share/locale/uk/LC_MESSAGES/zypper.mo
/usr/share/locale/wa/LC_MESSAGES/zypper.mo
/usr/share/locale/xh/LC_MESSAGES/zypper.mo
/usr/share/locale/zh_CN/LC_MESSAGES/zypper.mo
/usr/share/locale/zh_TW/LC_MESSAGES/zypper.mo
/usr/share/locale/zu/LC_MESSAGES/zypper.mo
/usr/share/man/man8/zypp-refresh.8.gz
/usr/share/man/man8/zypper.8.gz
/usr/share/zypper
/usr/share/zypper/xml
/usr/share/zypper/xml/xmlout.rnc
/usr/share/zypper/zypper.aug
/var/log/zypper.log

References

Summary

In this tutorial we learn how to install zypper on Fedora 34 using yum and dnf.