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.
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.
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
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.
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.
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.
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)
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.
|All times are GMT -5. The time now is 05:46 PM.|