536
◾
Linux with Operating System Concepts
So this user is able, through sudo, to perform software installation. This user should be the
one who authenticates. When done, installation takes place and the new software title is
installed. Installation will most likely take place under /usr.
13.4 INSTALLATION FROM PACKAGE MANAGER
A package manager is a program used by users or system administrators to install, update,
upgrade, or remove software. In Red Hat Linux, the primary forms of package manag-
ers are
rpm
and
yum
. Rpm stands for Red Hat Package Manager and yum stands for
Yellowdog Updater Modifier. Rpm is the more primitive approach requiring more effort by
the user/administrator. Yum on the other hand calls upon rpm to accomplish its tasks. As
such, yum is a much simpler way to install software. In Debian Linux, the primary package
manager is
apt
(Advanced Packaging Tool). Rpm, yum, and apt are now available in other
Linux distributions, so it is useful to learn all three tools.
In general, a package manager, or a package management system, provides several dif-
ferent useful functions for both installation and maintenance of software. The package
manager can be used to verify the correctness of the contents of a package. Correctness
means that the files themselves have proper checksum values (for error detection) and
proper signatures. A digital signature is not required for software installation. But when
one is provided with a software package, you can use this to ensure that the software is
legitimate. The package manager operates as an archival tool in that it can unpack and
uncompress the files in the package. Since the packages typically consist of executable
files, library files, and supporting files (e.g., documentation and data files), there is no need
to compile the files. However, the files must be placed correctly. The package manager
performs installation by testing files and moving them to their destination directories.
Testing of files involves checking dependencies. For instance, if one file requires a particu-
lar library file to function, then that library file must be available in your Linux system or
the dependency is not met.
Libraries consist primarily of .so files. The so extension stands for “shared object” where
shared means that the item is to be shared among multiple programs and object means that
it is an object (already compiled) file.
The .so files play a similar role in Linux as the .dll files (dynamic linked library) in
Windows. However, in Linux, so files are versioned, meaning that they are stored based
on the version number of the Linux system or software that will use them. Thus, the same
named library may exist under slightly different names. In Windows, a newer version of
the same dll file will replace an older version so that software requiring the given library is
forced to use the most recent version. This may or may not complicate matters in running
the older software. This leads to a situation that many Windows programmers have dubbed
“DLL Hell.”
The majority of Linux library files are found under either /lib or /lib64. These directories
are divided into subdirectories for classes of library files. For instance, you might find secu-
rity library files under
/lib/security
and/or
/lib64/security
while most library
files are found directly under /lib64. Most of these files have the name
lib
Do'stlaringiz bilan baham: