Strange behavior between software center and YUM

Hello,

I’ve installed a fresh Nethserver on a minimal CentOS installation…
In the Netserver software Center, I’ve installed only the gateway and firewall components…


( behind “web Server” there`s nothing )

So I was very surprise to find Open Ldap and Postfix installed:

There another thing that make me sad…
I have unistalled some stuff ( look the date ):

And yesterday, this services still present on the system:

How can I know the package dependencies?
How C-icap, nslcd, postfix and sladap come here?

I would like to understand what`s happen.

Edit: title adjust, change
“The Strange behavior with the package manager”
for
“Strange behavior between software center and YUM”

The service C-icap installed is stopped… That’s mean, it`s not used.

With yum, I have seen that it was installed by the package nethserver-c-icap and remove it.

Now the module Web Content Filter appear in the “available” in the Software Center, no more in the "installed"
But, fortunaly, the web content filter still in the left menu and continue to have advertisment free web pages… :grimacing:

The package manager works only on group of packages.
A group of packages include a list of nethserver- packages.

When you asks the system to remove a group, the server will remove only nethserver- packages, thus the binaries are still installed.
Event the ports on the firewall are still open.
If you wish to close down the server (this is not really necessary):

config delete <service>
signal-event firewall-adjust

Thank you @Giacomo to help me understand the way the software center and yum interact together…

Let me ask 3 questions:

1- There`s a way to remove a package that was installed by another packag dependency without yum remove all?

i.e:
If I want to remove nethserver-lang-it with yum erase nethserver-lang-it

yum propose to remove netserver-lang-it and nethserver-http-admin…

there`s a way to remove nethserver-lang-it without remove nethserver-http-admin ?

In Gentoo and Debian, with the overlays, there a way to “pinned” a package. This way a package can’t be remove or can be use a very specific version of this package.
There`s a similar way to do this with RH/Centos or not?

2- In the other way, by the software center. Why the two commads config delete and signal-event firewall-adjust are not automatically executed when a package group is removed?

3- How to clean the system?

No, if the package A requires package B, you can’t remove package B without removing also package A.

Because a config delete can be dangerous and destroy configuration modified by the user.
The firewall-adjust is executed.

You can remove packages by hand. Just an example:

yum remove avahi

And, if you want, remove the configuration as mentioned in my previous post.

If I’m well understand, actually to remove the Nethserver-lang-it, I must remove and reinstall nethserver-http-admin !!!

And what about the config files?

I understand now what’s occur with the web content filter.
When I remove the nethserver-c-icap… yum remove the nethserver-squidclamav package…
I will try to reinstall this nethserver-squidclamav separately

Edit: nope.

When I want to reinstall nethserver-squidclamav yum want to reinstall nethserver-c-icap :confused:

Squidclamav uses c-icap.

Yes, I see this before your post ( I’ve reinstalled it ).

The service was stopped because the antivirus was not enable in the web content filter.

Now, is installed and started.

I take the subject to continue to dig yum…
There’s one thing that is not clear yet.

When I do this command: yum list installed

yum list installed
    Loaded plugins: changelog, fastestmirror, nethserver_events, presto
    Loading mirror speeds from cached hostfile
     * nethserver-base: mirror.nethserver.org
     * nethserver-updates: mirror.nethserver.org
    Installed Packages
    ConsoleKit.x86_64                  0.4.1-3.el6               @centos-base       
    ConsoleKit-libs.x86_64             0.4.1-3.el6               @centos-base       
    GeoIP.x86_64                       1.6.5-1.el6               @nethserver-updates
    GeoIP-GeoLite-data.noarch          2015.04-2.el6             @nethserver-updates
    GeoIP-GeoLite-data-extra.noarch    2015.04-2.el6             @nethserver-updates
    MAKEDEV.x86_64                     3.24-6.el6                @anaconda-CentOS-201410241409.x86_64/6.6
...

I don’t see what exactly mean the third column output… ( i.e. @centos-base )

It’s the source repository of the rpm.

About all the stuff installed by @anaconda, the centos installer.
All can be removes?

Absolutely not!! :scream: Those are core packages from the installer (anaconda is the name of CentOS installer) :smile:

Sorry, to ask stupid things, but the cores packages are not from @Centos ?
From @anaconda, there’s until X11 packages !!!

Theses packages have an utility yet ?

@Jim please stop to remove things! :tractor: :no_entry:

Jim, could you please explain what are you trying to achieve?

There’s things I’m trying to understand.

For exemple, I see in /etc the directory X11, and it`s little disturbing because I’ve made a minimal CentOS install and the Nethserver install… No desktop environment installation.

I simply ask me: Why this :melon: :pear: :pineapple: x11 doing here?

I’ve seen wireless-tools too… why is here?

I’m only try to understand why and how these packages are present in the system.

the short answer: you don’t need to know why
the long one: you need to get confident with rpms and dependencies…

there are packages that install other packagers (even if their content will stay unused) because some files/libraries are needed

google will help you

man rpm (regarding -q flag) will enlight the path :slight_smile:

Thank a lot…

I 've made the man yum without thinking about the man rpm hahahah :smiley:

yum is just an (enhanced) interface/wrapper for rpm

9 posts were split to a new topic: Why extra files from packages