Sometimes when you are trying to uninstall or upgrade some software on a Linux machine you run into dependency related issues. Noen ganger når du prøver å avinstallere eller oppgradere noen programvare på en Linux-maskin du kjører inn i avhengighet relaterte problemer. Just about everyone I know who works with RPM based distributions has experienced what is known as “rpm hell” at one time or another. Omtrent alle jeg kjenner som jobber med RPM-baserte distribusjoner har opplevd det som kalles "rpm helvete" på et eller annet tidspunkt. Here's something to help you a bit if you are stuck in one of those situations. Her er noe for å hjelpe deg litt hvis du står fast i en av disse situasjonene.
Let's look at how to check what files an installed RPM depends on. La oss se på hvordan å sjekke hvilke filer en installert RPM er avhengig av.
Say you are trying to upgrade or uninstall the RPM of sendmail from your Linux computer. Si du prøver å oppgradere eller avinstallere RPM av sendmail fra din Linux-maskin. You might run into dependency issues when you run the uninstall command: Du kan støte på avhengighet problemer når du kjører avinstallere kommando:
# rpm -e sendmail-8.13.1-3.2 # Rpm-e sendmail-8.13.1-3,2
In such a case it might be useful to take a look at what files this package depends on. I slike tilfeller kan det være nyttig å ta en titt på hvilke filer denne pakken er avhengig av. Use the following command: Bruk følgende kommando:
# rpm -qR sendmail-8.13.1-3.2 # Rpm-QR sendmail-8.13.1-3,2
/bin/bash / bin / bash
/bin/mktemp / bin / mktemp
/bin/sh / bin / sh
/bin/sh / bin / sh
/bin/sh / bin / sh
/bin/sh / bin / sh
/bin/sh / bin / sh
/usr/sbin/alternatives / usr / sbin / alternativer
/usr/sbin/useradd / usr / sbin / useradd
bash >= 2.0 bash> = 2.0
chkconfig >= 1.3 chkconfig> = 1,3
config(sendmail) = 8.13.1-3.2.el4 config (sendmail) = 8.13.1-3.2.el4
cyrus-sasl Cyrus-SASL
fileutils fileutils
gawk gawk
libc.so.6 libc.so.6
libc.so.6(GLIBC_2.0) libc.so.6 (GLIBC_2.0)
libc.so.6(GLIBC_2.1) libc.so.6 (GLIBC_2.1)
… ...
Now you can see a list of files that the sendmail package depends on and you'll be better equipped to debug the failed uninstallation process. Nå kan du se en liste over filene som sendmail pakken avhenger av, og du vil bli bedre rustet til å feilsøke den feilslåtte avinstallasjonsprosessen.























One Response One Response
Stay in touch with the conversation, subscribe to the Hold kontakten med samtalen, abonnere på RSS feed for comments on this post RSS feed for kommentarer til dette innlegget . .
Continuing the Discussion Fortsetter Discussion