{"id":46160,"date":"2026-07-31T22:40:04","date_gmt":"2026-07-31T20:40:04","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=46160"},"modified":"2026-07-31T22:40:06","modified_gmt":"2026-07-31T20:40:06","slug":"removing-rpm-with-dnf-implies-removing-systemd","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/","title":{"rendered":"Removing rpm with dnf implies removing systemd"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">On an Oracle Linux 8, I installed a new package and did not pay attention that dnf used an old Oracle Linux 7 repository. Trying to remove it again, I was getting following error:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Error:<br>Problem: The operation would result in removing the following protected packages: systemd<br>(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this blog I would like to share the solution with you.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">So I was just running dnf install, as described here:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV ~]# dnf install libzstd\nLast metadata expiration check: 0:03:23 ago on Tue 02 Jun 2026 04:18:15 PM CEST.\nPackage libzstd-1.4.4-1.0.1.el8.x86_64 is already installed.\nDependencies resolved.\n=========================================================================================================================================================================================\nPackage                                     Architecture                               Version                                           Repository                                Size\n=========================================================================================================================================================================================\nUpgrading:\nlibzstd                                     x86_64                                     1.5.5-1.el7                                       epel                                     292 k\n\nTransaction Summary\n=========================================================================================================================================================================================\nUpgrade  1 Package\n\nTotal download size: 292 k\nIs this ok [y\/N]: y\nDownloading Packages:\n[MIRROR] libzstd-1.5.5-1.el7.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for https:\/\/fedora-archive.ip-connect.info\/epel\/7\/x86_64\/Packages\/l\/libzstd-1.5.5-1.el7.x86_64.rpm [Received HTTP code 403 from proxy after CONNECT]\n[MIRROR] libzstd-1.5.5-1.el7.x86_64.rpm: Status code: 403 for http:\/\/fedora-archive.ip-connect.info\/epel\/7\/x86_64\/Packages\/l\/libzstd-1.5.5-1.el7.x86_64.rpm (IP: 172.16.1.200)\n[MIRROR] libzstd-1.5.5-1.el7.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for https:\/\/ftp-stud.hs-esslingen.de\/pub\/Mirrors\/archive.fedoraproject.org\/epel\/7\/x86_64\/Packages\/l\/libzstd-1.5.5-1.el7.x86_64.rpm [Received HTTP code 403 from proxy after CONNECT]\n[MIRROR] libzstd-1.5.5-1.el7.x86_64.rpm: Status code: 403 for http:\/\/ftp-stud.hs-esslingen.de\/pub\/Mirrors\/archive.fedoraproject.org\/epel\/7\/x86_64\/Packages\/l\/libzstd-1.5.5-1.el7.x86_64.rpm (IP: 172.16.1.200)\nlibzstd-1.5.5-1.el7.x86_64.rpm                                                                                                                           384 kB\/s | 292 kB     00:00\n-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nTotal                                                                                                                                                    306 kB\/s | 292 kB     00:00\nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                                                                                                                                 1\/1\n  Upgrading        : libzstd-1.5.5-1.el7.x86_64                                                                                                                                      1\/2\n  Running scriptlet: libzstd-1.5.5-1.el7.x86_64                                                                                                                                      1\/2\n  Cleanup          : libzstd-1.4.4-1.0.1.el8.x86_64                                                                                                                                  2\/2\n  Running scriptlet: libzstd-1.4.4-1.0.1.el8.x86_64                                                                                                                                  2\/2\n  Verifying        : libzstd-1.5.5-1.el7.x86_64                                                                                                                                      1\/2\n  Verifying        : libzstd-1.4.4-1.0.1.el8.x86_64 \n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">Unfortunately, I was too fast and did not realize dnf was using an el7 repo. And more over the command removed the proper el8 package to install the el7 package.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I agree, I should have pay attention and see:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Package libzstd-1.4.4-1.0.1.el8.x86_64 is already installed.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Or package version to be: <code>1.5.5-1.el7<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anyhow, I realized after having push y.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And trying to remove it, gave following error message:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV ~]# dnf remove libzstd-1.5.5-1.el7.x86_64\nError:\nProblem: The operation would result in removing the following protected packages: systemd\n(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)\n<\/pre>\n<br>\n\n\n\n\n<p class=\"wp-block-paragraph\">So it seems it is a full mess now. But checking which installed rpm package requires libzstd, I was surprised to see none:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV ~]# rpm -q --whatrequires libzstd\nno package requires libzstd\n<\/pre>\n<br>\n\n\n\n\n<p class=\"wp-block-paragraph\">The problem was that after a previous upgrade to Oracle linux 8, and as leapp upgrade does not remove custom repo, there was still an el7 customized repo, epel, activated.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV ~]# cat \/etc\/yum.repos.d\/epel.repo\n[epel]\nname=Extra Packages for Enterprise Linux 7 - $basearch\n# It is much more secure to use the metalink, but if you wish to use a local mirror\n# place its address here.\n#baseurl=http:\/\/download.example\/pub\/epel\/7\/$basearch\nmetalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-7&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\nfailovermethod=priority\nenabled=1\ngpgcheck=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-7\n<\/pre>\n<br>\n\n\n\n\n<p class=\"wp-block-paragraph\">At that time, I asked one of my colleague having very good linux experience, Joel Cattin, who guided me to the resolution. I would like to take the opportunity here, to thank him again for the great help.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We first tried to cleanup the cache and to upgrade the package, but it did not helped:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,4,8,18]\">\n[root@SRV yum.repos.d]# dnf clean all\n66 files removed\n\n[root@SRV yum.repos.d]# dnf make cache\nNo such command: make. Please use \/usr\/bin\/dnf --help\nIt could be a DNF plugin command, try: \"dnf install 'dnf-command(make)'\"\n\n[root@SRV yum.repos.d]# dnf upgrade libzstd\nOracle Linux 8 EPEL Packages for Development (x86_64)                                                                                                                        10 MB\/s | 111 MB     00:10\nOracle Linux 8 EPEL Modular Packages for Development (x86_64)                                                                                                               2.3 MB\/s | 332 kB     00:00\nOracle Linux 8 BaseOS Latest (x86_64)                                                                                                                                        10 MB\/s | 143 MB     00:13\nOracle Linux 8 Application Stream (x86_64)                                                                                                                                   10 MB\/s |  81 MB     00:07\nLatest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)                                                                                                   11 MB\/s | 146 MB     00:13\nDependencies resolved.\nNothing to do.\nComplete!\n\n[root@SRV yum.repos.d]# rpm -qa | grep -i el7\nlibzstd-1.5.5-1.el7.x86_64\n\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">Still getting the error:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV yum.repos.d]# dnf remove libzstd\nError:\n Problem: The operation would result in removing the following protected packages: systemd\n(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)\n[root@SRV yum.repos.d]#\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">And we finally went to the magic command, <code>dnf distro-sync,<\/code> which will synchronize the installed package with the versions available in the enabled repositories, and most important  the repository that should match the version. So in my case an el8 repo.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And this command did the work, removing the el7 package and installing the el8 version package.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,27,32,33]\">[root@SRV ~]# dnf distro-sync libzstd\nLast metadata expiration check: 0:23:38 ago on Wed 03 Jun 2026 07:27:26 AM CEST.\nDependencies resolved.\n===========================================================================================================================================================================\n Package                             Architecture                       Version                                        Repository                                     Size\n===========================================================================================================================================================================\nDowngrading:\n libzstd                             x86_64                             1.4.4-1.0.1.el8                                ol8_baseos_latest                             266 k\n\nTransaction Summary\n===========================================================================================================================================================================\nDowngrade  1 Package\n\nTotal download size: 266 k\nIs this ok [y\/N]: y\nDownloading Packages:\nlibzstd-1.4.4-1.0.1.el8.x86_64.rpm                                                                                                         1.5 MB\/s | 266 kB     00:00\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nTotal                                                                                                                                      1.4 MB\/s | 266 kB     00:00\nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                                                                                                                   1\/1\n  Downgrading      : libzstd-1.4.4-1.0.1.el8.x86_64                                                                                                                    1\/2\n  Cleanup          : libzstd-1.5.5-1.el7.x86_64                                                                                                                        2\/2\n  Running scriptlet: libzstd-1.5.5-1.el7.x86_64                                                                                                                        2\/2\n  Verifying        : libzstd-1.4.4-1.0.1.el8.x86_64                                                                                                                    1\/2\n  Verifying        : libzstd-1.5.5-1.el7.x86_64                                                                                                                        2\/2\n\nDowngraded:\n  libzstd-1.4.4-1.0.1.el8.x86_64\n\nComplete!\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">And finally, I did not have any remaining el7 package. The version of libzstd package was one from the ol8 distribution.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,2]\">\n[root@SRV ~]# rpm -qa | grep -i el7\n[root@SRV ~]# rpm -qa | grep -i libzstd\nlibzstd-1.4.4-1.0.1.el8.x86_64\n[root@SRV ~]#\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">And to avoid problem again, I did what should be done after all leapp upgrade&#8230; Removing any el7 repo, in my case the epel el7 repo:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV ~]# rpm -qa | grep -i epel\nepel-release-7-14.noarch\n[root@SRV ~]# dnf remove epel-release-7-14.noarch\nDependencies resolved.\n=========================================================================================================================================================================================\n Package                                          Architecture                               Version                                   Repository                                   Size\n=========================================================================================================================================================================================\nRemoving:\n epel-release                                     noarch                                     7-14                                      @System                                      25 k\n\nTransaction Summary\n=========================================================================================================================================================================================\nRemove  1 Package\n\nFreed space: 25 k\nIs this ok [y\/N]: y\nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                                                                                                                                 1\/1\n  Running scriptlet: epel-release-7-14.noarch                                                                                                                                        1\/1\n  Erasing          : epel-release-7-14.noarch                                                                                                                                        1\/1\n  Running scriptlet: epel-release-7-14.noarch                                                                                                                                        1\/1\n  Verifying        : epel-release-7-14.noarch                                                                                                                                        1\/1\n\nRemoved:\n  epel-release-7-14.noarch\n\nComplete!\n<\/pre>\n<br>\n\n\n\n\n<p class=\"wp-block-paragraph\">I again checked that no other el7 repo was enabled:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV ~]# dnf repolist all --enabled\nrepo id                                                         repo name\nol8_UEKR6                                                       Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)\nol8_appstream                                                   Oracle Linux 8 Application Stream (x86_64)\nol8_baseos_latest                                               Oracle Linux 8 BaseOS Latest (x86_64)\n[root@SRV ~]#\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">I installed the el8 epel repo, as customer was using it:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV yum.repos.d]# dnf install oracle-epel-release-el8\nLast metadata expiration check: 0:50:57 ago on Tue 02 Jun 2026 04:18:15 PM CEST.\nDependencies resolved.\n=========================================================================================================================================================================================\n Package                                              Architecture                        Version                                   Repository                                      Size\n=========================================================================================================================================================================================\nInstalling:\n oracle-epel-release-el8                              x86_64                              1.0-5.el8                                 ol8_baseos_latest                               15 k\n\nTransaction Summary\n=========================================================================================================================================================================================\nInstall  1 Package\n\nTotal download size: 15 k\nInstalled size: 18 k\nIs this ok [y\/N]: y\nDownloading Packages:\noracle-epel-release-el8-1.0-5.el8.x86_64.rpm                                                                                                             136 kB\/s |  15 kB     00:00\n-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nTotal                                                                                                                                                    134 kB\/s |  15 kB     00:00\nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                                                                                                                                 1\/1\n  Installing       : oracle-epel-release-el8-1.0-5.el8.x86_64                                                                                                                        1\/1\n  Verifying        : oracle-epel-release-el8-1.0-5.el8.x86_64                                                                                                                        1\/1\n\nInstalled:\n  oracle-epel-release-el8-1.0-5.el8.x86_64\n\nComplete!\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">And checked again the enabled repo to ensure there is only el8 repo with now the epel el8 repo as additional one:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n[root@SRV yum.repos.d]# dnf repolist all --enabled\nrepo id                                                              repo name\nol8_UEKR6                                                            Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)\nol8_appstream                                                        Oracle Linux 8 Application Stream (x86_64)\nol8_baseos_latest                                                    Oracle Linux 8 BaseOS Latest (x86_64)\nol8_developer_EPEL                                                   Oracle Linux 8 EPEL Packages for Development (x86_64)\nol8_developer_EPEL_modular                                           Oracle Linux 8 EPEL Modular Packages for Development (x86_64)\n[root@SRV yum.repos.d]#\n<\/pre>\n<br>\n\n\n\n<p class=\"wp-block-paragraph\">And last repo check in the repo files directly:<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,12,14,15,17,19]\">\n[root@SRV ~]# ls -ltrh \/etc\/yum.repos.d\/\ntotal 40K\n-rw-r--r--. 1 root root  530 Mar 28  2022 oracle-epel-ol8.repo\n-rw-r--r--. 1 root root  243 May 23  2024 virt-ol8.repo\n-rw-r--r--. 1 root root 1.4K Apr 22  2025 epel-testing.repo\n-rw-r--r--. 1 root root 1.8K Apr 22  2025 epel-testing-modular.repo\n-rw-r--r--. 1 root root 1.7K Apr 22  2025 epel-modular.repo\n-rw-r--r--. 1 root root 4.5K Sep 19  2025 leapp-upgrade-repos-ol8.repo.save\n-rw-r--r--. 1 root root 4.1K Jun  2 13:46 oracle-linux-ol8.repo\n-rw-r--r--. 1 root root  941 Jun  2 13:46 uek-ol8.repo\n\n[root@SRV ~]# rm -f \/etc\/yum.repos.d\/leapp-upgrade-repos-ol8.repo.save\n\n[root@SRV ~]# grep -i el7 \/etc\/yum.repos.d\/*\n[root@SRV ~]# grep -i el8 \/etc\/yum.repos.d\/* | wc -l\n6\n[root@SRV ~]# grep -i ol8 \/etc\/yum.repos.d\/* | wc -l\n50\n[root@SRV ~]# grep -i ol7 \/etc\/yum.repos.d\/* | wc -l\n0\n[root@SRV ~]#\n<\/pre>\n<br>\n\n","protected":false},"excerpt":{"rendered":"<p>On an Oracle Linux 8, I installed a new package and did not pay attention that dnf used an old Oracle Linux 7 repository. Trying to remove it again, I was getting following error: Error:Problem: The operation would result in removing the following protected packages: systemd(try to add &#8216;&#8211;skip-broken&#8217; to skip uninstallable packages or &#8216;&#8211;nobest&#8217; [&hellip;]<\/p>\n","protected":false},"author":48,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[59],"tags":[2844],"type_dbi":[],"class_list":["post-46160","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-oracle-linux-8"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.1 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Removing rpm with dnf implies removing systemd - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Removing rpm with dnf implies removing systemd\" \/>\n<meta property=\"og:description\" content=\"On an Oracle Linux 8, I installed a new package and did not pay attention that dnf used an old Oracle Linux 7 repository. Trying to remove it again, I was getting following error: Error:Problem: The operation would result in removing the following protected packages: systemd(try to add &#039;--skip-broken&#039; to skip uninstallable packages or &#039;--nobest&#039; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-31T20:40:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-31T20:40:06+00:00\" \/>\n<meta name=\"author\" content=\"Marc Wagner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marc Wagner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/\"},\"author\":{\"name\":\"Marc Wagner\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/225d9884b8467ead9a872823acb14628\"},\"headline\":\"Removing rpm with dnf implies removing systemd\",\"datePublished\":\"2026-07-31T20:40:04+00:00\",\"dateModified\":\"2026-07-31T20:40:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/\"},\"wordCount\":386,\"commentCount\":0,\"keywords\":[\"Oracle Linux 8\"],\"articleSection\":[\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/\",\"name\":\"Removing rpm with dnf implies removing systemd - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-07-31T20:40:04+00:00\",\"dateModified\":\"2026-07-31T20:40:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/225d9884b8467ead9a872823acb14628\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/removing-rpm-with-dnf-implies-removing-systemd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Removing rpm with dnf implies removing systemd\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/225d9884b8467ead9a872823acb14628\",\"name\":\"Marc Wagner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g\",\"caption\":\"Marc Wagner\"},\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/marc-wagner\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Removing rpm with dnf implies removing systemd - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/","og_locale":"en_US","og_type":"article","og_title":"Removing rpm with dnf implies removing systemd","og_description":"On an Oracle Linux 8, I installed a new package and did not pay attention that dnf used an old Oracle Linux 7 repository. Trying to remove it again, I was getting following error: Error:Problem: The operation would result in removing the following protected packages: systemd(try to add '--skip-broken' to skip uninstallable packages or '--nobest' [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/","og_site_name":"dbi Blog","article_published_time":"2026-07-31T20:40:04+00:00","article_modified_time":"2026-07-31T20:40:06+00:00","author":"Marc Wagner","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Marc Wagner","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/"},"author":{"name":"Marc Wagner","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628"},"headline":"Removing rpm with dnf implies removing systemd","datePublished":"2026-07-31T20:40:04+00:00","dateModified":"2026-07-31T20:40:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/"},"wordCount":386,"commentCount":0,"keywords":["Oracle Linux 8"],"articleSection":["Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/","url":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/","name":"Removing rpm with dnf implies removing systemd - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2026-07-31T20:40:04+00:00","dateModified":"2026-07-31T20:40:06+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/removing-rpm-with-dnf-implies-removing-systemd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Removing rpm with dnf implies removing systemd"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628","name":"Marc Wagner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g","caption":"Marc Wagner"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/marc-wagner\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/46160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=46160"}],"version-history":[{"count":11,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/46160\/revisions"}],"predecessor-version":[{"id":46171,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/46160\/revisions\/46171"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=46160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=46160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=46160"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=46160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}