The 19th Chapter IBM Linux Management

Source: Internet
Author: User

first, Linux and Aix

Originally designed for the x86 architecture, Linux now supports a variety of hardware platforms. such as: PowerPC, s/390, SPARC, Alpha, and other embedded systems. PowerPC and s/390 are IBM, SAPRC is Sun, Alpha is Dec and now HP. But the Linux version running on the inter chip is not available on the pseries, and Linux running on the pseries is designed specifically for the PowerPC kernel.

To run a Linux app on AIX, you only need to install the AIX Toolbox for Linux applications package under AIX, and Linux apps can be compiled in the AIX environment where the package is installed, with Aix-compatible binary native code. So that it can be run on the AIX system, IBM extends the range of applications in the AIX environment.

The AIX Toolbox for Linux applications contains the following software:

Second, Toolbox

1. Toolbox directory Structure

After the toolbox is installed, make sure that the/var directory has enough free space, because many open source applications use the/var file system to store temporary and persistent data, and also to ensure that the/var/opt/freeware/tmp directory exists because it does not link to/var/tmp

Toolbox Rollup Linux binaries and Linux libraries are installed in the/opt/freeware/bin and/opt/freeware/lib directories, respectively:

A) Add some symbolic connections to the files in the/opt/freeware/bin directory in the/usr/bin and/usr/linux/bin directories;

b) Add some symbolic connections to the files in the/opt/freeware/lib directory in the/usr/lib and/usr/linux/lib directories.

This setting avoids conflicts with AIX binaries and libraries. If the executable name in Toolbox already exists in Aix, then link it to the/usr/linux/bin directory for a long time, and library's links are the same.

Description of the/opt/freeware directory tree:

bin: Commands used by system administrators and users

sbin: Commands used by system administrators

etc: Configuration file

Info: Gun wash

Lib: the shared library used by the Toolbox application

Doc: various documents

include: header file with Toolbox

libexec: Library of support programs and a special set of programs

share: Contains files that do not depend on the structure

man: Help Manual

src/packages: Save the directory of software source program, there are some subdirectories, binary rpm soft package under RPMs, source program rpm under Srpms, source code and compressed into the tar format of the source package under sources, The RPM specification file is saved under specs, and the build directory is the RPM command that generates the RPM package.

2. Toolbox rpm Format

The RPM Package Manager maintains a database of all installed packages and corresponding files, and it also stores information about all packages that have been installed or upgraded in the system. This database can reflect the configuration of the system in which it resides. Usually the RPM database file is saved in/var/opt/freeware/lib/rpm.

In Aix, the software installation and update process and its vpd are stored in the ODM database, the standard AIX software installer is INSTALLP, when installing the AIX BFF format file, it updates the VPD in the ODM, The RPM installation database is also updated when the package is installed with the RPM command.

In order to include the libraries and shells installed in Aix in the RPM database, a virtual package concept has been introduced into toolbox. The virtual package aix-rpm contains all of the libraries and shells of the AIX base operating system, which can be created by executing the/usr/sbin/updtvpkg script, which determines what libraries and shells Aix provides, and then creates the virtual package. That RPM can record all of the system libraries in its own database.

Toolbox contains executable programs, related configuration files (RPM), and the source code of the binaries (SRPM). A package consisting of an executable program, a related configuration file called an RPM package, and a package consisting of the source code of the binary program becomes the SRPM package.

Toolbox, in addition to Rpm.rte unexpectedly, is the RPM format of the tool,Rpm.rte is the RPM manager , you need to install this before the installation of other RPM tool packages. When installing Rpm.rte with INSTALLP, a/usr/sbin/updtvpkg program is executed to build a virtual package that contains "all of the libraries and shells in the Aix base operating system." Later, you can manually execute the/usr/sbin/updtvpkg script to update the virtual package so that the RPM manager is well aware of the changes to the library and shell information in the AIX system.

(then you can install a variety of Linux packages, command see another file)

The 19th Chapter IBM Linux Management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.