How To Install dpkg on Rocky Linux 8
Introduction
In this tutorial we learn how to install dpkg
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install dpkg.
Install dpkg on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install dpkg
using dnf
by running the following command:
sudo dnf -y install dpkg
Install dpkg on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
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 Rocky Linux 8
To uninstall only the dpkg
package we can use the following command:
sudo dnf remove dpkg
dpkg Package Contents on Rocky Linux 8
/etc/dpkg
/etc/dpkg/dpkg.cfg
/etc/dpkg/dpkg.cfg.d
/etc/dpkg/origins
/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-split
/usr/bin/dpkg-statoverride
/usr/bin/dpkg-trigger
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/00719cc2c2fdcd1a0ada3ecbe29afbe7dfb672
/usr/lib/.build-id/49
/usr/lib/.build-id/49/4e588057da8f9aab10de6cf2e1487bed01d65c
/usr/lib/.build-id/62
/usr/lib/.build-id/62/d082b65eea34636d0cc4c8123ab9759eaa365e
/usr/lib/.build-id/63
/usr/lib/.build-id/63/c3d8890ef1babe6d445e40d272f4f2c90fa59e
/usr/lib/.build-id/87
/usr/lib/.build-id/87/47067c7460205c59c0e79315dc8d01b03cec7c
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/32cab15dcfd2f96c58994ae9a1e198e74b788c
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/b6a7711c8cfc6529ad61a216d95e0b2ce6bab6
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/5da5e39387737e29d3b966710b47251f2f71d8
/usr/sbin/start-stop-daemon
/usr/share/doc/dpkg
/usr/share/doc/dpkg/AUTHORS
/usr/share/doc/dpkg/README
/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/usertags
/usr/share/dpkg
/usr/share/dpkg/abitable
/usr/share/dpkg/cputable
/usr/share/dpkg/ostable
/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/dpkg.cfg.5.gz
/usr/share/man/de/man8/start-stop-daemon.8.gz
/usr/share/man/es/man1/dpkg-divert.1.gz
/usr/share/man/es/man1/dpkg-split.1.gz
/usr/share/man/es/man8/start-stop-daemon.8.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-query.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/man8/start-stop-daemon.8.gz
/usr/share/man/it/man8/start-stop-daemon.8.gz
/usr/share/man/ja/man1/dpkg-divert.1.gz
/usr/share/man/ja/man1/dpkg-split.1.gz
/usr/share/man/ja/man8/start-stop-daemon.8.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-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/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/man8/start-stop-daemon.8.gz
/usr/share/man/pl/man8/start-stop-daemon.8.gz
/usr/share/man/sv/man1/dpkg-divert.1.gz
/usr/share/man/sv/man1/dpkg-maintscript-helper.1.gz
/usr/share/man/sv/man1/dpkg-query.1.gz
/usr/share/man/sv/man1/dpkg-split.1.gz
/usr/share/man/sv/man1/dpkg-statoverride.1.gz
/usr/share/man/sv/man1/dpkg-trigger.1.gz
/usr/share/man/sv/man8/start-stop-daemon.8.gz
/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 Rocky Linux 8 using yum and dnf.