Linux Software Installation General Ideas 2001-05-31 · · Fjxufeng ·· Linuxaid.com.cn 1 2 Next In the Linux system, the software installer is complicated, but the most common there are two: 1) one is Software source code, you need yourself to compile it. This software installation package is usually used with Gzip compressed TAR packages (suffix is .tar.gz). 2) The other is the software executable program, you can install it. This software installation package is usually a RPM package (Redhat Linux Packet Manager, which is the redhat package manager), the suffix is. Rpm. Of course, there is also the source code packaged by the RPM format, and the executable package compressed by GZIP. As long as you understand the following ideas, these two forms of installation packs are not there. Below, we divide two parts to illustrate the software installation ideas: Part 1: Get it .tar.gz 1. First, use tar -xzvf to unlock this package, such as: #tar -xzvf apache_1_3_6_tar.gz This will be in the current A new directory is created in the catalog (the directory name is similar to the file name of the.tat.gz package), which is used to store the unzipped content. In this example, Apache_1.3.6 2. Enter this directory, use the ls command to view the files contained in this directory, such as: #CD Apache_1.3.6 #LS You observe which file contains the following files: configure, makefile Still image. 1) If it is a configure file, execute: #. / Configure #make #make install2) If it is a makefile file, it will be performed: #make #make install3) If it is an image file, it will be performed: #xmkmf #make #Make Install 3 If there is no error message, it will be done. As for where the software is installed, it usually appears during installation. Otherwise, you can only check the readme, or ask me, :-)
If you encounter an error, don't worry, it is usually a very simple question:
1) No C or C compiler is installed;
Just diagnosis method: Execute the command GCC (C is G ), prompting this command.
Workaround: Enter the Linux Disc mount, then enter the rpms directory, execute the command:
# rpm -ivh gcc * (Haha, we used the second installation method)
2) No Make tool is installed;
Just diagnosed method: Execute the command Make, prompting the command.
Workaround: Enter the Linux Disc mount, then enter the rpms directory, execute the command:
# rpm -ivh make *
3) No AutoConf tool is installed;
Just diagnosed method: Execute the command Make, prompting the command.
Workaround: Enter the Linux Disc mount, then enter the rpms directory, execute the command:
# rpm -ivh autoconf *
4) Lack of certain link libraries;
Just a method: When Make, you will need some files.
Workaround: Install the package containing this file, which requires accumulation. Part II: Get it. Rpm
RPM is the Red Hat launched a package manager with Redhat Linux, which enables more easily and easy to implement software installation.
1. Install the software: Execute the RPM -IVH RPM package name, such as:
# rpm -ivh apache-1.3.6.i386.rpm
2. Upgrade Software: Execute the RPM -UVH RPM package name.
3. Reverse installation: Execute the RPM-E RPM package name.
4. Query the package details: Execute the RPM -QPI RPM package name
5. Querying a file belongs to that rpm package: execute rpm -qf rpm package name
6. Check which files are written to the system: execute rpm -qpl rpm package name