Remove unnecessary packages

 

IMPORTANT NOTE:  This document is based on CentOS, RedHat Linux 7.3 and Enterprise.  The concepts should be similar across operating systems, but the commands will very likely be different.  Also, never assume the directory structures exist in your system as written in the document.  Never blindly follow security instructions -- read, review, compare, apply as it fits your system.

Log into each server as root.

Make sure the RPM database is up to date by executing the following command:

 rpm --rebuilddb

The following commands will remove unnecessary packages from a Linux system. The following deal with power management of a laptop (apmd), sound cards, printers, creating cd's and cd labels.

rpm -ev --nodeps apmd
rpm -ev --nodeps sndconfig
rpm -ev --nodeps aumix
rpm -ev bluez-gnome bluez-libs bluez-utils
rpm -ev --nodeps cups-devel
rpm -ev --nodeps cups-drivers
rpm -ev --nodeps cups-libs
rpm -ev --nodeps cups
rpm -ev --nodeps kernel-pcmcia-cs
rpm -ev --nodeps LPRng printconf
rpm -ev --nodeps pnm2ppa
rpm -ev --nodeps mpage
rpm -ev --nodeps Omni Omni-foomatic
rpm -ev --nodeps foomatic
rpm -ev --nodeps cdlabelgen
rpm -ev --nodeps cdparanoia-devel
rpm -ev --nodeps cdparanoia
rpm -ev --nodeps cdparanoia-alpha9
rpm -ev --nodeps cpd
rpm -ev --nodeps playmidi
rpm -ev --nodeps talk
rpm -ev --nodeps talk-server
rpm -ev --nodeps inews
rpm -ev --nodeps inn
rpm -ev --nodeps a2ps
rpm -ev --nodeps docbook-utils docbook-utils-pdf
rpm -ev --nodeps docbook-style-dsssl
rpm -ev --nodeps docbook-dtd30-sgml docbook-dtd31-sgml
rpm -ev --nodeps docbook-dtd40-sgml docbook-dtd41-sgml
rpm -ev --nodeps psgml
rpm -ev --nodeps sgml-tools
rpm -ev --nodeps bcm5820
rpm -ev --nodeps efax
rpm -ev --nodeps eject
rpm -ev squid
rpm -ev tux
rpm -ev vsftpd
rpm -ev ypbind yp-tools

NOTES:

To get a listing of what packages you have installed, use "rpm -qa."

To find out what a particular package does, do the following:

rpm -qi [package name]

For example:

rpm -qi logwatch

Name : logwatch Relocations: (not relocateable)
Version : 4.3.2 Vendor: Kirk Bauer <kirk@kaybee.org>
Release : 1 Build Date: Tue 18 Feb 2003 10:53:45 AM EST
Install date: Tue 06 May 2003 03:41:08 PM EDT Build Host: kaybee.org
Group : Applications/System Source RPM: logwatch-4.3.2-1.src.rpm
Size : 252366 License: MIT
Packager : Kirk Bauer <kirk@kaybee.org>
URL : http://www.logwatch.org
Summary : A log file analysis program.
Description :
LogWatch is a customizable log analysis system. LogWatch parses
through your system's logs for a given period of time and creates a
report analyzing areas that you specify, in as much detail as you
require. LogWatch is easy to use and claims that it will work right
out of the package on almost all systems. Note that LogWatch now
analyzes Samba logs.

IMPORTANT NOTE:  This document and all linked document is being provided as a good will gesture to the Parallels H-Sphere community and to others who may benefit from its use.  Dynamic Net, Inc. makes no representations implied or explicit as to their value or warranty. Dynamic Net, Inc. will not be held liable for any damage resulting in the application of the steps and procedures noted.  If you feel uncomfortable at all about doing any of the steps, make a complete system backup and hire a third party like We Manage Servers to do the work for you.

 

 
 

Home ::  About :: Testimonials  ::  Articles ::  Employment ::  Contact
Services ::  Web Hosting ::  Managed Services :: Parallels H-Sphere  :: Monitoring :: ShopSite 
Resellers
::   Program ::  Compare Plans ::  Private Label
   
  :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 Legal Notices - Acceptable Use Policy, Contract, Copyright, Terms of Service

See our
privacy statement for questions on how we use information gained by our site.

Managed Services provided by We Manage Servers