LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-04-2008, 12:42 PM   #1
Moonman
Member
 
Registered: May 2004
Posts: 37

Rep: Reputation: 15
Packages installed that weren't selected during install


I have setup a new Redhat EL 4 server and specifically removed certain packages from being installed, ie, sendmail, MySQL, PostgreSQL, printer functions, etc...

After the install, all of those packages listed above are showing up as installed in the packages GUI. When I attempt to remove them, I get an error about an Unlocatable package dependency.

Anyone have any idea what is causing this?



One specific example is sendmail. If I try to remove it I receive the error:

error: Failed dependencies:
/usr/bin/sendmail is needed by (installed) redhat-lsb-3.0-8.EL.i386
smtpdaemon is needed by (installed) mdadm-1.12.0-2.i386


The goal is to get a minimal system setup to run oracle and one other specific software program.

Thanks,

Mike
 
Old 01-04-2008, 02:31 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,321

Rep: Reputation: 141Reputation: 141
Your rpm database may be corrupted. The first thing I would try is rebuilding the rpm database with:

# rpm --rebuilddb

Then try using the gui tools to get rid of the packages you don't want.
 
Old 01-04-2008, 02:33 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,560

Rep: Reputation: 182Reputation: 182
When package A is a dependency of package B then in order to remove A you also have to remove B.

It is possible to remove A without removing B by using the rpm command and the --nodeps option. For example:

rpm --nodeps -e A

See:

man rpm

If you do this then B may fail to run because A is missing. When you start installing and uninstalling using --nodeps then you have to handle dependency issues manually instead of letting Red Hat take care of it.

-----------------
Steve Stites
 
Old 01-04-2008, 02:49 PM   #4
Moonman
Member
 
Registered: May 2004
Posts: 37

Original Poster
Rep: Reputation: 15
kilgoretrout, it is not the rpm database. System is built from kickstart file. Same situation exists if I re-install fresh system using that kickstart file or manually using same package selections.

jailbait, thanks for the tutorial, I get that, but I want solve the root cause of the problem. How are packages I didn't select getting installed. I was able to remove sendmail and mysql but had to remove 7 or 8 other packages first. I am looking to automate RHEL install and having to manually remove 8 packages doesn't really fit into a nice clean install.

Thx,
 
Old 01-04-2008, 03:19 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,560

Rep: Reputation: 182Reputation: 182
Quote:
Originally Posted by Moonman View Post

jailbait, thanks for the tutorial, I get that, but I want solve the root cause of the problem. How are packages I didn't select getting installed.

Thx,
I haven't done a Red Hat install in a while but based on what I remember there are two possibilities for the extra packages. The first is dependencies. When you select a package the installer will automatically select all of its dependencies also. And it will select dependencies of dependencies et cetera. Some installers notify you of the automatic additions and some don't. As I remember Red Hat it did not tell you about added dependencies at install time.

The other possibility is package groups. You might select something like "email client" and Red Hat installs several email clients letting you try out and choose which one you prefer. I know that Fedora installs by package groups and possibly Red Hat does too. You could check the installer to see if it has an "All" option where it lists every package available and lets you select or omit individual packages.

--------------------
Steve Stites
 
Old 01-04-2008, 03:28 PM   #6
Moonman
Member
 
Registered: May 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Bingo. I think you are right on the dependencies getting picked up automatically.

Anyone know of a tool (or rpm switch) that will display the packages on a RedHat machine grouped or sorted by dependencies? I've selected about 40-50 packages for this install, but after installed the machine has over 650 packages installed (rpm -qa output is 657 lines in length)
 
Old 01-10-2008, 04:08 PM   #7
twk
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora/RHEL
Posts: 152

Rep: Reputation: 31
I found it's helpful to not include any group in kickstart to trim down installation size. Rather it's better list the software/package you want manually.
e.g.
%packages --resolvedeps
net-snmp-utils
sysstat
screen
compat-openldap
vim-enhanced
rpm-build
rpm-devel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
Installed New Theme, cannot read selected menu items DJNolz83 Ubuntu 9 04-15-2007 01:24 AM
What default packages are installed on a Server install of Redhat 7? thekillerbean Linux - Software 9 05-02-2006 11:35 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM
apt is confused, trying to install packages that are already installed tomj88 Debian 10 09-11-2005 06:33 PM


All times are GMT -5. The time now is 04:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration