How To Install dpkg on Fedora 34
Introduction
In this tutorial we learn how to install dpkg
on Fedora 34.
What is dpkg
This package provides the low-level infrastructure for handling the installation and removal of Debian software packages. This package contains the tools (including dpkg-source) required to unpack, build and upload Debian source packages. This package also contains the programs dpkg which used to handle the installation and removal of packages on a Debian system. This package also contains dselect, an interface for managing the installation and removal of packages on the system. dpkg and dselect will certainly be non-functional on a rpm-based system because packages dependencies will likely be unmet.
We can use yum
or dnf
to install dpkg
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install dpkg.
Install dpkg 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 dpkg
using dnf
by running the following command:
sudo dnf -y install dpkg
Install dpkg 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 dpkg
using yum
by running the following command:
sudo yum -y install dpkg
How To Uninstall dpkg on Fedora 34
To uninstall only the dpkg
package we can use the following command:
sudo dnf remove dpkg
dpkg Package Contents on Fedora 34
/etc/dpkg
/etc/dpkg/dpkg.cfg
/etc/dpkg/dpkg.cfg.d
/etc/dpkg/origins
/etc/dpkg/origins/default
/etc/dpkg/origins/fedora
/etc/logrotate.d/dpkg
/usr/bin/dpkg
/usr/bin/dpkg-deb
/usr/bin/dpkg-divert
/usr/bin/dpkg-maintscript-helper
/usr/bin/dpkg-query
/usr/bin/dpkg-realpath
/usr/bin/dpkg-split
/usr/bin/dpkg-statoverride
/usr/bin/dpkg-trigger
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/74bc42883872862f2a0554fd0daf773d4bf5dc
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/116608bcb6884524972c7971074e3aceb2e5d1
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/056de3241db915b2d98ac7e928dab7fb5681d5
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/33d3e4b88d2e79886292ad5c5115f375a80695
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/1b14f884b8a25dc588e8dbd95e2cdace0c9b41
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/fa19616df29db7b3ce33217eaaa55aad3b2f5a
/usr/lib/.build-id/da
/usr/lib/.build-id/da/2f2fe69b4624862ab35f70c6fbef75c51ccab0
/usr/lib/.build-id/df
/usr/lib/.build-id/df/54393e168bd247dfe5d49f635585b2634fd428
/usr/sbin/dpkg-fsys-usrunmess
/usr/sbin/start-stop-daemon
/usr/share/doc/dpkg
/usr/share/doc/dpkg/AUTHORS
/usr/share/doc/dpkg/README
/usr/share/doc/dpkg/README.api
/usr/share/doc/dpkg/README.bug-usertags
/usr/share/doc/dpkg/README.feature-removal-schedule
/usr/share/doc/dpkg/THANKS
/usr/share/doc/dpkg/TODO
/usr/share/doc/dpkg/changelog
/usr/share/doc/dpkg/dpkg.cron.daily
/usr/share/doc/dpkg/frontend.txt
/usr/share/doc/dpkg/protected-field.txt
/usr/share/doc/dpkg/rootless-builds.txt
/usr/share/doc/dpkg/triggers.txt
/usr/share/dpkg
/usr/share/dpkg/abitable
/usr/share/dpkg/cputable
/usr/share/dpkg/ostable
/usr/share/dpkg/sh/dpkg-error.sh
/usr/share/dpkg/tupletable
/usr/share/licenses/dpkg
/usr/share/licenses/dpkg/copyright
/usr/share/locale/ast/LC_MESSAGES/dpkg.mo
/usr/share/locale/bs/LC_MESSAGES/dpkg.mo
/usr/share/locale/ca/LC_MESSAGES/dpkg.mo
/usr/share/locale/cs/LC_MESSAGES/dpkg.mo
/usr/share/locale/da/LC_MESSAGES/dpkg.mo
/usr/share/locale/de/LC_MESSAGES/dpkg.mo
/usr/share/locale/dz/LC_MESSAGES/dpkg.mo
/usr/share/locale/el/LC_MESSAGES/dpkg.mo
/usr/share/locale/eo/LC_MESSAGES/dpkg.mo
/usr/share/locale/es/LC_MESSAGES/dpkg.mo
/usr/share/locale/et/LC_MESSAGES/dpkg.mo
/usr/share/locale/eu/LC_MESSAGES/dpkg.mo
/usr/share/locale/fr/LC_MESSAGES/dpkg.mo
/usr/share/locale/gl/LC_MESSAGES/dpkg.mo
/usr/share/locale/hu/LC_MESSAGES/dpkg.mo
/usr/share/locale/id/LC_MESSAGES/dpkg.mo
/usr/share/locale/it/LC_MESSAGES/dpkg.mo
/usr/share/locale/ja/LC_MESSAGES/dpkg.mo
/usr/share/locale/km/LC_MESSAGES/dpkg.mo
/usr/share/locale/ko/LC_MESSAGES/dpkg.mo
/usr/share/locale/ku/LC_MESSAGES/dpkg.mo
/usr/share/locale/lt/LC_MESSAGES/dpkg.mo
/usr/share/locale/mr/LC_MESSAGES/dpkg.mo
/usr/share/locale/nb/LC_MESSAGES/dpkg.mo
/usr/share/locale/ne/LC_MESSAGES/dpkg.mo
/usr/share/locale/nl/LC_MESSAGES/dpkg.mo
/usr/share/locale/nn/LC_MESSAGES/dpkg.mo
/usr/share/locale/pa/LC_MESSAGES/dpkg.mo
/usr/share/locale/pl/LC_MESSAGES/dpkg.mo
/usr/share/locale/pt/LC_MESSAGES/dpkg.mo
/usr/share/locale/pt_BR/LC_MESSAGES/dpkg.mo
/usr/share/locale/ro/LC_MESSAGES/dpkg.mo
/usr/share/locale/ru/LC_MESSAGES/dpkg.mo
/usr/share/locale/sk/LC_MESSAGES/dpkg.mo
/usr/share/locale/sv/LC_MESSAGES/dpkg.mo
/usr/share/locale/th/LC_MESSAGES/dpkg.mo
/usr/share/locale/tl/LC_MESSAGES/dpkg.mo
/usr/share/locale/tr/LC_MESSAGES/dpkg.mo
/usr/share/locale/vi/LC_MESSAGES/dpkg.mo
/usr/share/locale/zh_CN/LC_MESSAGES/dpkg.mo
/usr/share/locale/zh_TW/LC_MESSAGES/dpkg.mo
/usr/share/man/de/man1/dpkg-deb.1.gz
/usr/share/man/de/man1/dpkg-divert.1.gz
/usr/share/man/de/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/de/man1/dpkg-query.1.gz
/usr/share/man/de/man1/dpkg-realpath.1.gz
/usr/share/man/de/man1/dpkg-split.1.gz
/usr/share/man/de/man1/dpkg-statoverride.1.gz
/usr/share/man/de/man1/dpkg-trigger.1.gz
/usr/share/man/de/man1/dpkg.1.gz
/usr/share/man/de/man5/dpkg.cfg.5.gz
/usr/share/man/de/man8/dpkg-fsys-usrunmess.8.gz
/usr/share/man/de/man8/start-stop-daemon.8.gz
/usr/share/man/es/man1/dpkg-split.1.gz
/usr/share/man/es/man5/dpkg.cfg.5.gz
/usr/share/man/fr/man1/dpkg-deb.1.gz
/usr/share/man/fr/man1/dpkg-divert.1.gz
/usr/share/man/fr/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/fr/man1/dpkg-split.1.gz
/usr/share/man/fr/man1/dpkg-statoverride.1.gz
/usr/share/man/fr/man1/dpkg-trigger.1.gz
/usr/share/man/fr/man1/dpkg.1.gz
/usr/share/man/fr/man5/dpkg.cfg.5.gz
/usr/share/man/fr/man8/start-stop-daemon.8.gz
/usr/share/man/hu/man5/dpkg.cfg.5.gz
/usr/share/man/it/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/it/man1/dpkg-split.1.gz
/usr/share/man/it/man5/dpkg.cfg.5.gz
/usr/share/man/ja/man1/dpkg-split.1.gz
/usr/share/man/ja/man5/dpkg.cfg.5.gz
/usr/share/man/man1/dpkg-deb.1.gz
/usr/share/man/man1/dpkg-divert.1.gz
/usr/share/man/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/man1/dpkg-query.1.gz
/usr/share/man/man1/dpkg-realpath.1.gz
/usr/share/man/man1/dpkg-split.1.gz
/usr/share/man/man1/dpkg-statoverride.1.gz
/usr/share/man/man1/dpkg-trigger.1.gz
/usr/share/man/man1/dpkg.1.gz
/usr/share/man/man5/dpkg.cfg.5.gz
/usr/share/man/man8/dpkg-fsys-usrunmess.8.gz
/usr/share/man/man8/start-stop-daemon.8.gz
/usr/share/man/nl/man1/dpkg-deb.1.gz
/usr/share/man/nl/man1/dpkg-divert.1.gz
/usr/share/man/nl/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/nl/man1/dpkg-query.1.gz
/usr/share/man/nl/man1/dpkg-realpath.1.gz
/usr/share/man/nl/man1/dpkg-split.1.gz
/usr/share/man/nl/man1/dpkg-statoverride.1.gz
/usr/share/man/nl/man1/dpkg-trigger.1.gz
/usr/share/man/nl/man1/dpkg.1.gz
/usr/share/man/nl/man5/dpkg.cfg.5.gz
/usr/share/man/nl/man8/dpkg-fsys-usrunmess.8.gz
/usr/share/man/nl/man8/start-stop-daemon.8.gz
/usr/share/man/pl/man1/dpkg-split.1.gz
/usr/share/man/pl/man5/dpkg.cfg.5.gz
/usr/share/man/pt/man1/dpkg-deb.1.gz
/usr/share/man/pt/man1/dpkg-divert.1.gz
/usr/share/man/pt/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/pt/man1/dpkg-query.1.gz
/usr/share/man/pt/man1/dpkg-realpath.1.gz
/usr/share/man/pt/man1/dpkg-split.1.gz
/usr/share/man/pt/man1/dpkg-statoverride.1.gz
/usr/share/man/pt/man1/dpkg-trigger.1.gz
/usr/share/man/pt/man1/dpkg.1.gz
/usr/share/man/pt/man5/dpkg.cfg.5.gz
/usr/share/man/pt/man8/dpkg-fsys-usrunmess.8.gz
/usr/share/man/pt/man8/start-stop-daemon.8.gz
/usr/share/man/sv/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/sv/man1/dpkg-split.1.gz
/usr/share/man/sv/man5/dpkg.cfg.5.gz
/usr/share/polkit-1/actions/org.dpkg.pkexec.update-alternatives.policy
/var/lib/dpkg
/var/lib/dpkg/alternatives
/var/lib/dpkg/diversions
/var/lib/dpkg/info
/var/lib/dpkg/methods
/var/lib/dpkg/methods/disk
/var/lib/dpkg/methods/ftp
/var/lib/dpkg/methods/mnt
/var/lib/dpkg/methods/multicd
/var/lib/dpkg/parts
/var/lib/dpkg/statoverride
/var/lib/dpkg/status
/var/lib/dpkg/updates
/var/log/dpkg.log
/etc/dpkg
/etc/dpkg/dpkg.cfg
/etc/dpkg/dpkg.cfg.d
/etc/dpkg/origins
/etc/dpkg/origins/default
/etc/dpkg/origins/fedora
/etc/logrotate.d/dpkg
/usr/bin/dpkg
/usr/bin/dpkg-deb
/usr/bin/dpkg-divert
/usr/bin/dpkg-maintscript-helper
/usr/bin/dpkg-query
/usr/bin/dpkg-realpath
/usr/bin/dpkg-split
/usr/bin/dpkg-statoverride
/usr/bin/dpkg-trigger
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/f34923f7bc6acf1094397535eca69b2772fea2
/usr/lib/.build-id/45
/usr/lib/.build-id/45/0e20b45bf526666e8c854d97a454c45ba67051
/usr/lib/.build-id/82
/usr/lib/.build-id/82/8687a0a1b22ad12ca42f82866f36d3b84c3259
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/30a882ae36a1aae778f669e26875f25e2b66ad
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/cf9eeeca622371c94348b33923330cc54a369b
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/9265c0b4cc1c23fed6d50cafe3261d8f142d13
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/c62e72ef88f6ee223c83078995b1f6c7a65829
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/e32b0fd892d5db625c344df9396cf02bcd01ec
/usr/sbin/dpkg-fsys-usrunmess
/usr/sbin/start-stop-daemon
/usr/share/doc/dpkg
/usr/share/doc/dpkg/AUTHORS
/usr/share/doc/dpkg/README
/usr/share/doc/dpkg/README.api
/usr/share/doc/dpkg/README.bug-usertags
/usr/share/doc/dpkg/README.feature-removal-schedule
/usr/share/doc/dpkg/THANKS
/usr/share/doc/dpkg/TODO
/usr/share/doc/dpkg/changelog
/usr/share/doc/dpkg/dpkg.cron.daily
/usr/share/doc/dpkg/frontend.txt
/usr/share/doc/dpkg/protected-field.txt
/usr/share/doc/dpkg/rootless-builds.txt
/usr/share/doc/dpkg/triggers.txt
/usr/share/dpkg
/usr/share/dpkg/abitable
/usr/share/dpkg/cputable
/usr/share/dpkg/ostable
/usr/share/dpkg/sh/dpkg-error.sh
/usr/share/dpkg/tupletable
/usr/share/licenses/dpkg
/usr/share/licenses/dpkg/copyright
/usr/share/locale/ast/LC_MESSAGES/dpkg.mo
/usr/share/locale/bs/LC_MESSAGES/dpkg.mo
/usr/share/locale/ca/LC_MESSAGES/dpkg.mo
/usr/share/locale/cs/LC_MESSAGES/dpkg.mo
/usr/share/locale/da/LC_MESSAGES/dpkg.mo
/usr/share/locale/de/LC_MESSAGES/dpkg.mo
/usr/share/locale/dz/LC_MESSAGES/dpkg.mo
/usr/share/locale/el/LC_MESSAGES/dpkg.mo
/usr/share/locale/eo/LC_MESSAGES/dpkg.mo
/usr/share/locale/es/LC_MESSAGES/dpkg.mo
/usr/share/locale/et/LC_MESSAGES/dpkg.mo
/usr/share/locale/eu/LC_MESSAGES/dpkg.mo
/usr/share/locale/fr/LC_MESSAGES/dpkg.mo
/usr/share/locale/gl/LC_MESSAGES/dpkg.mo
/usr/share/locale/hu/LC_MESSAGES/dpkg.mo
/usr/share/locale/id/LC_MESSAGES/dpkg.mo
/usr/share/locale/it/LC_MESSAGES/dpkg.mo
/usr/share/locale/ja/LC_MESSAGES/dpkg.mo
/usr/share/locale/km/LC_MESSAGES/dpkg.mo
/usr/share/locale/ko/LC_MESSAGES/dpkg.mo
/usr/share/locale/ku/LC_MESSAGES/dpkg.mo
/usr/share/locale/lt/LC_MESSAGES/dpkg.mo
/usr/share/locale/mr/LC_MESSAGES/dpkg.mo
/usr/share/locale/nb/LC_MESSAGES/dpkg.mo
/usr/share/locale/ne/LC_MESSAGES/dpkg.mo
/usr/share/locale/nl/LC_MESSAGES/dpkg.mo
/usr/share/locale/nn/LC_MESSAGES/dpkg.mo
/usr/share/locale/pa/LC_MESSAGES/dpkg.mo
/usr/share/locale/pl/LC_MESSAGES/dpkg.mo
/usr/share/locale/pt/LC_MESSAGES/dpkg.mo
/usr/share/locale/pt_BR/LC_MESSAGES/dpkg.mo
/usr/share/locale/ro/LC_MESSAGES/dpkg.mo
/usr/share/locale/ru/LC_MESSAGES/dpkg.mo
/usr/share/locale/sk/LC_MESSAGES/dpkg.mo
/usr/share/locale/sv/LC_MESSAGES/dpkg.mo
/usr/share/locale/th/LC_MESSAGES/dpkg.mo
/usr/share/locale/tl/LC_MESSAGES/dpkg.mo
/usr/share/locale/tr/LC_MESSAGES/dpkg.mo
/usr/share/locale/vi/LC_MESSAGES/dpkg.mo
/usr/share/locale/zh_CN/LC_MESSAGES/dpkg.mo
/usr/share/locale/zh_TW/LC_MESSAGES/dpkg.mo
/usr/share/man/de/man1/dpkg-deb.1.gz
/usr/share/man/de/man1/dpkg-divert.1.gz
/usr/share/man/de/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/de/man1/dpkg-query.1.gz
/usr/share/man/de/man1/dpkg-split.1.gz
/usr/share/man/de/man1/dpkg-statoverride.1.gz
/usr/share/man/de/man1/dpkg-trigger.1.gz
/usr/share/man/de/man1/dpkg.1.gz
/usr/share/man/de/man5/deb-conffiles.5.gz
/usr/share/man/de/man5/dpkg.cfg.5.gz
/usr/share/man/de/man7/deb-version.7.gz
/usr/share/man/de/man8/dpkg-fsys-usrunmess.8.gz
/usr/share/man/de/man8/start-stop-daemon.8.gz
/usr/share/man/es/man1/dpkg-split.1.gz
/usr/share/man/es/man5/dpkg.cfg.5.gz
/usr/share/man/fr/man1/dpkg-deb.1.gz
/usr/share/man/fr/man1/dpkg-divert.1.gz
/usr/share/man/fr/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/fr/man1/dpkg-split.1.gz
/usr/share/man/fr/man1/dpkg-statoverride.1.gz
/usr/share/man/fr/man1/dpkg-trigger.1.gz
/usr/share/man/fr/man1/dpkg.1.gz
/usr/share/man/fr/man5/dpkg.cfg.5.gz
/usr/share/man/fr/man7/deb-version.7.gz
/usr/share/man/fr/man8/start-stop-daemon.8.gz
/usr/share/man/hu/man5/dpkg.cfg.5.gz
/usr/share/man/it/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/it/man1/dpkg-split.1.gz
/usr/share/man/it/man5/dpkg.cfg.5.gz
/usr/share/man/ja/man1/dpkg-split.1.gz
/usr/share/man/ja/man5/dpkg.cfg.5.gz
/usr/share/man/man1/dpkg-deb.1.gz
/usr/share/man/man1/dpkg-divert.1.gz
/usr/share/man/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/man1/dpkg-query.1.gz
/usr/share/man/man1/dpkg-realpath.1.gz
/usr/share/man/man1/dpkg-split.1.gz
/usr/share/man/man1/dpkg-statoverride.1.gz
/usr/share/man/man1/dpkg-trigger.1.gz
/usr/share/man/man1/dpkg.1.gz
/usr/share/man/man5/deb-conffiles.5.gz
/usr/share/man/man5/dpkg.cfg.5.gz
/usr/share/man/man7/deb-version.7.gz
/usr/share/man/man8/dpkg-fsys-usrunmess.8.gz
/usr/share/man/man8/start-stop-daemon.8.gz
/usr/share/man/nl/man1/dpkg-deb.1.gz
/usr/share/man/nl/man1/dpkg-divert.1.gz
/usr/share/man/nl/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/nl/man1/dpkg-query.1.gz
/usr/share/man/nl/man1/dpkg-split.1.gz
/usr/share/man/nl/man1/dpkg-statoverride.1.gz
/usr/share/man/nl/man1/dpkg-trigger.1.gz
/usr/share/man/nl/man1/dpkg.1.gz
/usr/share/man/nl/man5/dpkg.cfg.5.gz
/usr/share/man/nl/man7/deb-version.7.gz
/usr/share/man/nl/man8/start-stop-daemon.8.gz
/usr/share/man/pl/man1/dpkg-split.1.gz
/usr/share/man/pl/man5/dpkg.cfg.5.gz
/usr/share/man/pt/man1/dpkg-deb.1.gz
/usr/share/man/pt/man1/dpkg-divert.1.gz
/usr/share/man/pt/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/pt/man1/dpkg-query.1.gz
/usr/share/man/pt/man1/dpkg-split.1.gz
/usr/share/man/pt/man1/dpkg-statoverride.1.gz
/usr/share/man/pt/man1/dpkg-trigger.1.gz
/usr/share/man/pt/man1/dpkg.1.gz
/usr/share/man/pt/man5/dpkg.cfg.5.gz
/usr/share/man/pt/man7/deb-version.7.gz
/usr/share/man/pt/man8/start-stop-daemon.8.gz
/usr/share/man/sv/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/sv/man1/dpkg-split.1.gz
/usr/share/man/sv/man5/dpkg.cfg.5.gz
/usr/share/polkit-1/actions/org.dpkg.pkexec.update-alternatives.policy
/var/lib/dpkg
/var/lib/dpkg/alternatives
/var/lib/dpkg/info
/var/lib/dpkg/parts
/var/lib/dpkg/updates
References
Summary
In this tutorial we learn how to install dpkg
on Fedora 34 using yum and dnf.