{"id":3382,"date":"2020-11-24T13:39:09","date_gmt":"2020-11-24T18:39:09","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=3382"},"modified":"2020-11-24T13:39:09","modified_gmt":"2020-11-24T18:39:09","slug":"running-vms-delete-wireless-packages","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2020\/11\/running-vms-delete-wireless-packages\/","title":{"rendered":"Running VMs? Delete wireless packages!"},"content":{"rendered":"<p>A best practice for system configuration is to remove any unneeded software. It&#8217;s sometimes difficult to know exactly what is needed and what isn&#8217;t, but CentOS 7 minimal and CentOS 8 minimal both install a number of packages related to wireless networking. If you&#8217;re running a server or a VM there&#8217;s almost never a need for these to be present.<\/p>\n<p>To identify packages, I used <code>yum search<\/code> (substitute <code>dnf<\/code> for <code>yum<\/code> on CentOS 8):<\/p>\n<pre><code>yum search wireless<\/code><\/pre>\n<p>I used the same command a redirected the output to a file:<\/p>\n<pre><code>yum search wireless &gt;wireless_packages<\/code><\/pre>\n<p>To get just the package names and convert it to a space-separated list, I used <code>grep<\/code>, <code>cut<\/code>, and <code>paste<\/code>:<\/p>\n<pre><code>grep -v Summary wireless_packages | cut -d. -f1 | paste -d' ' -s<\/code><\/pre>\n<p>You can remove them with the following command:<\/p>\n<pre><code>sudo yum remove iw iwl6000-firmware crda iwl100-firmware iwl1000-firmware iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware iwl105-firmware iwl135-firmware iwl3160-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware iwl2000-firmware iwl2030-firmware iwl7260-firmware<\/code><\/pre>\n<p><code>iw<\/code> and <code>crda<\/code> were not installed, so were ignored. The rest were removed.<\/p>\n<p>This may seem trivial, but it frees up some disk space (~100MB) and it means that these packages won&#8217;t need to be updated in the future. Getting notifications from your monitoring systems or vulnerability management systems about updates or security updates to unused and unnecessary packages should be avoided.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A best practice for system configuration is to remove any unneeded software. It&#8217;s sometimes difficult to know exactly what is needed and what isn&#8217;t, but CentOS 7 minimal and CentOS 8 minimal both install a number of packages related to wireless networking. If you&#8217;re running a server or a VM there&#8217;s almost never a need &hellip; <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2020\/11\/running-vms-delete-wireless-packages\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Running VMs? Delete wireless packages!<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[422,232],"tags":[414,424],"class_list":["post-3382","post","type-post","status-publish","format-standard","hentry","category-sysadmin","category-tips-tricks","tag-centos","tag-yum"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/3382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=3382"}],"version-history":[{"count":4,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/3382\/revisions"}],"predecessor-version":[{"id":3389,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/3382\/revisions\/3389"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=3382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=3382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=3382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}