• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Gelöst zypper: Wo wird Paket 'x' eingesetzt?

gehrke

Administrator
Teammitglied
Moin *

Ich werde mich nach Jahren mit RedHat wohl zukünftig wieder mehr mit SUSE beschäftigen.

Hier eine Frage zu zypper, die ich bislang nur mit einem Workaround beantworten konnte: Ich möchte wissen, welche Software ein bestimmtes Paket verwendet. Konkret auf einem SLES-Server das Paket 'mozilla-nss'.

Mein Workaround ist ein testweises 'remove':
Code:
# zypper remove --dry-run  mozilla-nss

Reading installed packages...

Resolving package dependencies...

The following 18 packages are going to be REMOVED:

  cepces cepces-certmonger certmonger corosync cups-filters ha-cluster-bootstrap hawk-apiserver hawk2 libpoppler-cpp0 libpoppler89 libsoftokn3 libsoftokn3-hmac libtotem_pg5 mozilla-nss mozilla-nss-tools pacemaker poppler-tools

  samba-gpupdate

18 packages to remove.

After the operation, 46.8 MiB will be freed.

Continue? [y/n/v/...? shows all options] (y): n
Ah, ok - es ist also hauptsächlich das LinuxHA, welches das Paket benutzt. Insofern beantwortet der Workaround die Frage.

Aber wie macht man das richtig?
TNX

Glückauf, gehrke
 

susejunky

Moderator
Teammitglied
Hallo gehrke,

meines Erachtens sollte
Code:
zypper search --details --installed-only --requires mozilla-nss
oder kurz
Code:
zypper se -si --requires mozilla-nss
die gesuchten Pakete auflisten.

Viele Grüße

susejunky
 
OP
gehrke

gehrke

Administrator
Teammitglied
Huch - rpm hatte ich gar nicht mehr auf dem Schirm.

Aber scheint auch nicht zu helfen:
Code:
# rpm -q --whatrequires mozilla-nss
no package requires mozilla-nss
 
OP
gehrke

gehrke

Administrator
Teammitglied
Ah - das scheint eine Lösung zu sein:
Code:
# zypper search --details --installed-only --requires  mozilla-nss
Loading repository data...
Reading installed packages...

S | Name              | Type    | Version              | Arch   | Repository
--+-------------------+---------+----------------------+--------+------------------------------------
i | corosync          | package | 2.4.5-12.7.1         | x86_64 | SLE-Product-HA15-SP3-Updates
i | mozilla-nss-tools | package | 3.68.3-150000.3.67.1 | x86_64 | SLE-Module-Basesystem15-SP3-Updates


For an extended search including not yet activated remote resources you may run 'zypper
search-packages' at any time.
Do you want to run 'zypper search-packages' now? [yes/no/always/never] (no): yes
 
OP
gehrke

gehrke

Administrator
Teammitglied
Ich schliesse das hier mal - so reicht das. Vielen Dank an alle Beteiligten.
 
Oben