Packages installed that weren't selected during install
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
e.g.
%packages --resolvedeps
net-snmp-utils
sysstat
screen
compat-openldap
vim-enhanced
rpm-build
rpm-devel
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.