Software Installation and Maintenance
◾
539
as in
ix86 Red Hat Linux 7.1 for ia64
. As the rpm file contains executables,
we have to match the platform. Alternatively, we could download
the source code from
SourceForge and build the missing libraries ourselves.
So we download the rpm file that contains the missing library(ies). Now we install that
or those rpm file(s). With the dependency(ies) resolved, we can return to installing our
original RPM file. We issue the
rpm –i
packagename
. Figure 13.5 provides a ver-
bose output of this command (note that the specific rpm filename has again been replaced
FIGURE 13.4
RPM finder webpage providing links to missing libc.so.6 library.
D: read h#
1094 Header sanity check: OK
D: Requires: libc.so.6
YES (db provides)
D: Requires: libc.so.6(GLIBC_2.0)
YES (db provides)
D: Requires: libc.so.6(GLIBC_2.1)
YES (db provides)
D: Requires: libc.so.6(GLIBC_2.3)
NO
D: package –––––––––––––––––– has unsatisfied Requires: libc.so.6(GLIBC_2.3)
D: Requires: libm.so.6
YES (db provides)
D: Requires: libm.so.6(GLIBC_2.0)
YES (db provides)
D: Requires: libncurses.so.5
YES (db provides)
D: Requires: rpmlib(CompressedFileNames)
<=
3.0.4-1
YES (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix)
<=
4.0-1
YES (rpmlib provides)
D: opening db index
/var/lib/rpm/Conflictname rdonly mode
=
0x0
error: Failed dependencies:
libc.so.6(GLIBC_2.3) is needed by ––––––––––––––––––––––––
D:
closed db index
/var/lib/rpm/Conflictname
D: closed db index
/var/lib/rpm/Providename
D: closed db index
/var/lib/rpm/Basenames
D: closed db index
/var/lib/rpm/Name
D: closed db index
/var/lib/rpm/Packages
D: closed db environment /var/lib/rpm
FIGURE 13.5
Output of RPM installation.
540
◾
Linux with Operating System Concepts
with — — — — — — -). Notice that not all dependencies have been fulfilled in the output.
Specifically, GLIBC_2.3 is needed.
Many RPM files contain a digital signature. This signature is used to ensure the authen-
ticity of the file. This allows you to feel safe in that what you are installing is a legitimate
piece of software. Should the signature be absent or incorrect, you will receive either an
error or warning. These messages can be cryptic if you do not know why they arise.
Errors
can arise if the signature is not recognized or does not match what is expected and warnings
are issued if there is no signature. Error messages include the word “BAD” to indicate that
the signature was deemed bad while the warning messages include the word “NOKEY.” The
warning will not prevent the package from being installed/upgraded while the error will.
The rpm program has a number of installation/upgrade options. A few of the more use-
ful ones are listed in Table 13.1.
Other options are available if you are querying or verifying a package. Querying a yet-
to-be-installed package allows you to find out information about that package, including,
for instance, the executable files, document files,
configuration files, or script files enclosed
in the package, package information (name, version, description), dependencies, and the
state of the files in the package (e.g., installed, not installed, replaced). Verifying a package
compares the information as stated about the files to the actual files. This includes testing
the checksum value, comparing the
listed and actual file types, permissions, owners, and
modification times. You can also check the signature explicitly using
rpm --checksig
.
Obviously, there is a lot to using rpm. However, as a system administrator, it can be easy
to install software from the RPM should the dependencies check out ok. Otherwise, you
may find yourself searching for RPM files that satisfy dependencies, and this can be annoy-
ing and time consuming.
13.4.2 YUM
Using yum to install software is far simpler than using rpm. The main reason for this is
that yum will seek out dependencies of a package and find packages
to install that resolve
those dependencies. In this way, installing a single package may actually require installing
numerous packages. But once you issue the yum command, you can be blissfully ignorant
of the amount of work involved!
TABLE 13.1
RPM Installation and Upgrade Options
Do'stlaringiz bilan baham: