{"id":3555,"date":"2024-05-04T10:00:02","date_gmt":"2024-05-04T10:00:02","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=3555"},"modified":"2024-08-05T19:55:18","modified_gmt":"2024-08-05T19:55:18","slug":"remove-protected-packages-from-linux","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/","title":{"rendered":"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux"},"content":{"rendered":"<div class=\"cl-preview-section\"><\/div>\n<div class=\"cl-preview-section\">\n<p id=\"introduction\"><span style=\"font-size: 16px;\">Managing packages in Linux distributions such as Fedora, CentOS, RHEL, and Rocky Linux often involves installing, updating, and removing software. However, certain packages are deemed essential for the system\u2019s stability and security, making them protected by default. Removing these protected packages requires a careful approach to ensure system integrity. <\/span><\/p>\n<p><span style=\"font-size: 16px;\">This guide will walk you through the steps to safely remove protected packages, providing detailed instructions, practical examples, and best practices.<\/span><\/p>\n\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"understanding-protected-packages\">Understanding Protected Packages<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Protected packages are crucial for the system\u2019s operation. Removing them could potentially break the system or cause it to become unstable. These packages are often part of the core system and include libraries, system utilities, and essential services.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"why-are-packages-protected\">Why Are Packages Protected?<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol>\n<li><strong>System Stability<\/strong>: Ensures that the core functionalities of the system remain intact.<\/li>\n<li><strong>Security<\/strong>: Prevents accidental removal of security-critical packages.<\/li>\n<li><strong>Dependencies<\/strong>: Protects packages that other software depends on to function correctly.<\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"identifying-protected-packages\">Identifying Protected Packages<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Before attempting to remove a protected package, it\u2019s essential to identify it correctly and understand its role in the system. You can list protected packages using the package manager.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"listing-protected-packages-in-dnf-fedorarhelcentos-8\"><span id=\"listing-protected-packages-in-dnf-fedora-rhel-centos-8\">Listing Protected Packages in DNF (Fedora\/RHEL\/CentOS 8+)<\/span><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf repoquery --installonly\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"listing-protected-packages-in-yum-centos-7rhel-7\"><span id=\"listing-protected-packages-in-yum-centos-7-rhel-7\">Listing Protected Packages in Yum (CentOS 7\/RHEL 7)<\/span><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> yum list installed <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -i <span class=\"token string\">'protected'<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"removing-protected-packages-using-dnf\">Removing Protected Packages Using DNF<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-disable-package-protection\">Step 1: Disable Package Protection<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>In Fedora and newer versions of CentOS and RHEL that use DNF, package protection is managed by the\u00a0<code>dnf.conf<\/code>\u00a0file.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol>\n<li><strong>Open the\u00a0<code>dnf.conf<\/code>\u00a0file:<\/strong><\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/dnf\/dnf.conf\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol start=\"2\">\n<li><strong>Locate the\u00a0<code>protected_packages<\/code>\u00a0line:<\/strong><\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\">protected_packages<span class=\"token operator\">=<\/span>dnf, yum, rpm, kernel, system-release, system-release<span class=\"token punctuation\">(<\/span>again<span class=\"token punctuation\">)<\/span>, systemd\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol start=\"3\">\n<li><strong>Remove or comment out the package you wish to remove:<\/strong><\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token comment\"># protected_packages=dnf, yum, rpm, kernel, system-release, systemd<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-remove-the-package\">Step 2: Remove the Package<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>With the protection disabled, you can now remove the package.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf remove <span class=\"token operator\">&lt;<\/span>package_name<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"example-removing-the-kernel-package\">Example: Removing the\u00a0<code>kernel<\/code>\u00a0Package<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf remove kernel\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p><strong>Warning:<\/strong>\u00a0Removing the\u00a0<code>kernel<\/code>\u00a0package can render your system unbootable. Proceed with caution and ensure you have a backup or an alternative kernel installed.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<div class=\"cl-preview-section\">\n<h2 id=\"affordable-vps-hosting-with-dracula-servers\"><span style=\"color: #ff2600;\">Affordable VPS Hosting With Dracula Servers<\/span><\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Looking for reliable and budget-friendly Virtual Private Server (VPS) hosting? Look no further than\u00a0<a href=\"https:\/\/draculaservers.com\/\">Dracula Servers<\/a>. Dracula Servers offers a range of VPS hosting plans tailored to meet diverse needs. With competitive pricing, robust performance, and a user-friendly interface, it\u2019s an excellent choice for individuals and businesses alike.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Explore the\u00a0<a href=\"https:\/\/draculaservers.com\/\">Dracula Servers website<\/a> to discover hosting solutions that align with your requirements and take your online presence to new heights with their affordable and efficient VPS hosting services.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p><a href=\"https:\/\/draculaservers.com\/\"><strong>Visit Dracula Servers<\/strong><\/a>\u00a0and experience reliable VPS hosting without breaking the bank.<\/p>\n<\/div>\n<h2 id=\"removing-protected-packages-using-yum\">Removing Protected Packages Using Yum<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-disable-package-protection-1\"><span id=\"step-1-disable-package-protection-2\">Step 1: Disable Package Protection<\/span><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>In CentOS 7 and older versions of RHEL that use Yum, package protection is also managed by the\u00a0<code>yum.conf<\/code>\u00a0file.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol>\n<li><strong>Open the\u00a0<code>yum.conf<\/code>\u00a0file:<\/strong><\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/yum.conf\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol start=\"2\">\n<li><strong>Locate the\u00a0<code>protected_packages<\/code>\u00a0line:<\/strong><\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\">protected_packages<span class=\"token operator\">=<\/span>dnf yum rpm kernel system-release systemd\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol start=\"3\">\n<li><strong>Remove or comment out the package you wish to remove:<\/strong><\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token comment\"># protected_packages=dnf yum rpm kernel system-release systemd<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-remove-the-package-1\"><span id=\"step-2-remove-the-package-2\">Step 2: Remove the Package<\/span><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>With the protection disabled, you can now remove the package.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> yum remove <span class=\"token operator\">&lt;<\/span>package_name<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"example-removing-the-systemd-package\">Example: Removing the\u00a0<code>systemd<\/code>\u00a0Package<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> yum remove systemd\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p><strong>Warning:<\/strong>\u00a0Removing the\u00a0<code>systemd<\/code>\u00a0package will break your system\u2019s init system, making it unbootable.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"using-rpm-to-force-remove-packages\">Using RPM to Force Remove Packages<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>RPM is the underlying package manager for both DNF and Yum. You can use it to forcefully remove packages, bypassing the protection mechanisms of DNF and Yum. However, this method should be used as a last resort.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-locate-the-package\">Step 1: Locate the Package<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Identify the full package name and version.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\">rpm -qa <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token operator\">&lt;<\/span>package_name<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-remove-the-package-2\"><span id=\"step-2-remove-the-package-3\">Step 2: Remove the Package<\/span><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Use the\u00a0<code>--nodeps<\/code>\u00a0option to remove the package without checking for dependencies.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> rpm -e --nodeps <span class=\"token operator\">&lt;<\/span>package_name<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"example-force-removing-glibc\">Example: Force Removing\u00a0<code>glibc<\/code><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> rpm -e --nodeps glibc\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p><strong>Warning:<\/strong>\u00a0Removing\u00a0<code>glibc<\/code>\u00a0can cause severe system instability as it is a core library for Linux.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"best-practices-for-removing-protected-packages\">Best Practices for Removing Protected Packages<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"backup-your-system\">Backup Your System<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Before removing any protected package, ensure you have a complete backup of your system. Use tools like\u00a0<code>rsync<\/code>\u00a0or\u00a0<code>tar<\/code>\u00a0to create a backup.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">rsync<\/span> -a \/ \/path\/to\/backup\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"use-virtual-machines-or-containers\">Use Virtual Machines or Containers<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Test the removal of protected packages in a virtual machine (VM) or a container environment before applying the changes to a production system. Tools like VirtualBox, VMware, or Docker can be useful.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"document-changes\">Document Changes<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Maintain a log of all changes made to the package management configuration and the packages removed. This helps in troubleshooting and restoring the system if things go wrong.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"reinstall-critical-packages\">Reinstall Critical Packages<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>If you must remove a protected package, plan to reinstall it immediately after the removal to prevent system downtime.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf reinstall <span class=\"token operator\">&lt;<\/span>package_name<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"common-scenarios-and-solutions\">Common Scenarios and Solutions<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"scenario-1-removing-an-old-kernel\">Scenario 1: Removing an Old Kernel<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Linux systems often retain old kernels for fallback purposes. If you need to remove an old kernel, it\u2019s relatively safe compared to removing the current running kernel.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf remove kernel-<span class=\"token operator\">&lt;<\/span>version<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"scenario-2-replacing-a-system-utility\">Scenario 2: Replacing a System Utility<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Sometimes, you might need to replace a system utility with a different version or an alternative. For example, replacing\u00a0<code>systemd<\/code>\u00a0with\u00a0<code>sysvinit<\/code>.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf remove systemd\r\n<span class=\"token function\">sudo<\/span> dnf <span class=\"token function\">install<\/span> sysvinit\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"scenario-3-removing-a-deprecated-package\">Scenario 3: Removing a Deprecated Package<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Certain packages might become deprecated and no longer needed. Ensure you check the dependencies and the impact on the system before removing them.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism  language-bash\"><span class=\"token function\">sudo<\/span> dnf remove <span class=\"token operator\">&lt;<\/span>deprecated_package<span class=\"token operator\">&gt;<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Removing protected packages from Fedora, CentOS, RHEL, and Rocky Linux requires a careful approach to avoid destabilizing the system. This guide has provided detailed instructions on how to safely remove these packages using DNF, Yum, and RPM. By following best practices such as backing up your system, using virtual environments for testing, and documenting changes, you can manage your system packages effectively without compromising stability. Always proceed with caution and ensure you understand the implications of removing critical packages before taking action.<\/p>\n<p>Check out More Linux Tutorials <a href=\"https:\/\/draculaservers.com\/tutorials\/\" target=\"_blank\" rel=\"noopener\">Here!<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Managing packages in Linux distributions such as Fedora, CentOS, RHEL, and Rocky Linux often involves installing, updating, and removing software. However, certain packages are deemed essential for the system\u2019s stability and security, making them protected by default. Removing these protected packages requires a careful approach to ensure system integrity. This guide will walk you through [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3556,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[172],"tags":[670,671],"class_list":["post-3555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-tutorials","tag-remove-packages-on-linux","tag-remove-protected-packages-on-linux"],"blocksy_meta":[],"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png",1280,720,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69-300x169.png",300,169,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69-768x432.png",768,432,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69-1024x576.png",1024,576,true],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png",1280,720,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png",1280,720,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>Managing packages in Linux distributions such as Fedora, CentOS, RHEL, and Rocky Linux often involves installing, updating, and removing software. However, certain packages are deemed essential for the system\u2019s stability and security, making them protected by default. Removing these protected packages requires a careful approach to ensure system integrity. This guide will walk you through the steps to safely remove protected packages, providing detailed instructions, practical examples, and best practices. Understanding Protected Packages Protected packages are crucial for the system\u2019s operation. Removing them could potentially break the system or cause it to become unstable. These packages are often part of&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-tutorials\/\" rel=\"category tag\">Linux Tutorials<\/a>","author_info_v2":{"name":"Abdul Mannan","url":"https:\/\/draculaservers.com\/tutorials\/author\/abdul-mannan-tbgmail-com\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux - Dracula Servers Tutorials<\/title>\n<meta name=\"description\" content=\"Removing protected packages from your linux distribution can be very confusing especially to a new user. Learn the correct method with this guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"Removing protected packages from your linux distribution can be very confusing especially to a new user. Learn the correct method with this guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-04T10:00:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-05T19:55:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abdul Mannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abdul Mannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/\"},\"author\":{\"name\":\"Abdul Mannan\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\"},\"headline\":\"How to Remove Protected Packages from Fedora\\\/CentOS\\\/RHEL\\\/Rocky Linux\",\"datePublished\":\"2024-05-04T10:00:02+00:00\",\"dateModified\":\"2024-08-05T19:55:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/\"},\"wordCount\":858,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-69.png\",\"keywords\":[\"Remove packages on Linux\",\"Remove protected packages on linux\"],\"articleSection\":[\"Linux Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/\",\"name\":\"How to Remove Protected Packages from Fedora\\\/CentOS\\\/RHEL\\\/Rocky Linux - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-69.png\",\"datePublished\":\"2024-05-04T10:00:02+00:00\",\"dateModified\":\"2024-08-05T19:55:18+00:00\",\"description\":\"Removing protected packages from your linux distribution can be very confusing especially to a new user. Learn the correct method with this guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-69.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-69.png\",\"width\":1280,\"height\":720,\"caption\":\"Remove Protected Packages from Fedora\\\/CentOS\\\/RHEL\\\/Rocky Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/remove-protected-packages-from-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Remove Protected Packages from Fedora\\\/CentOS\\\/RHEL\\\/Rocky Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\",\"name\":\"Abdul Mannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"caption\":\"Abdul Mannan\"},\"description\":\"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux - Dracula Servers Tutorials","description":"Removing protected packages from your linux distribution can be very confusing especially to a new user. Learn the correct method with this guide.","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:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux - Dracula Servers Tutorials","og_description":"Removing protected packages from your linux distribution can be very confusing especially to a new user. Learn the correct method with this guide.","og_url":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2024-05-04T10:00:02+00:00","article_modified_time":"2024-08-05T19:55:18+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png","type":"image\/png"}],"author":"Abdul Mannan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abdul Mannan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/"},"author":{"name":"Abdul Mannan","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6"},"headline":"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux","datePublished":"2024-05-04T10:00:02+00:00","dateModified":"2024-08-05T19:55:18+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/"},"wordCount":858,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png","keywords":["Remove packages on Linux","Remove protected packages on linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/","url":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/","name":"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png","datePublished":"2024-05-04T10:00:02+00:00","dateModified":"2024-08-05T19:55:18+00:00","description":"Removing protected packages from your linux distribution can be very confusing especially to a new user. Learn the correct method with this guide.","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-69.png","width":1280,"height":720,"caption":"Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/remove-protected-packages-from-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Remove Protected Packages from Fedora\/CentOS\/RHEL\/Rocky Linux"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6","name":"Abdul Mannan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","caption":"Abdul Mannan"},"description":"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot."}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=3555"}],"version-history":[{"count":1,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3555\/revisions"}],"predecessor-version":[{"id":3557,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3555\/revisions\/3557"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/3556"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=3555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=3555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=3555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}