Linux Application Software Installation Summary

Source: Internet
Author: User

I. parse the Linux application software installation package. Generally, there are four installation packages for Linux application software:
1)Tar packageFor example, software-1.2.3-1.tar.gz. It is packaged using tar, a packaging tool for UNIX systems.
2)RPM package, Such as software-1.2.3-1.i386.rpm. It is a package Encapsulation Format provided by RedHat Linux.
3)Dpkg package, Such as software-1.2.3-1.deb. It is a package Encapsulation Format provided by debain Linux.
4)Bin package, Such as jdk-1_5_0_05-linux-i586.bin, some Linux software is not publicSource code, Only publish binary executableProgramSuch programs are usually marked with bin.

In addition, the names of most Linux application software packages also follow the following rules: Name-version-revision-type
For example:
1)software-1.2.3-1.tar.gz
Software name: Software Version: 1.2.3
Revised version: 1
Type: tar.gz, which indicates a tar package.

2) sfotware-1.2.3-1.i386.rpm
Software name: Software
Version: 1.2.3
Revised version: 1
Available platform: i386, applicable to Intel 80x86 platform.
Type: rpm, indicating an RPM package.

Note: The RPM format is usually compiled, so you need to specify the platform.

2. Understand the content in the package
A Linux application package contains two different types of content:
1) One is the executable file, that is, it can be run directly after the package is unwrapped. All software packages in windows are of this type. After installing this program, you can use it, but you cannot see the source program. Pay attention to this software during download.
Whether it is the platform you are using. Otherwise, the installation will fail.
2) The other is the source program. After the package is unwrapped, you also need to use the compiler to compile it into an executable file. This is almost absent in the Windows system, because the windows system is not open-source.
GenerallyAll tar packages are source scripts..Rpm, bin, and dpkg packages are usually executable programs.. In general, it is easier to compile the source program by yourself, but it is also easy to encounter various problems and difficulties. In contrast, downloading executable packages makes it easier to install the software. Of course, that flexibility is far worse. Therefore, a software always provides installation programs in multiple packaging formats. You can choose based on your own situation.

Three developers have decided to use the application software packaged by tar.gz (BZ or bz2). These software packages are all source programs that have not been compiled and must be compiled before installation.
1. installation:
The installation process can be divided into the following steps:
1) application software acquisition: Obtained by downloading and purchasing CDs;
2) decompress the file: Generally, the tar package will be compressed again, such as gzip and bz2, so you need to decompress it first. If it is the most common GZ format, you can execute:"Tar-xvzf package nameTo decompress and decompress the package. For example
If not, decompress the software and run "Tar-xvf decompressed tar package" to decompress the package;
3) read the install and readme files;
4) Execution"./Configure"Command to prepare for compilation;
5) Execute"Make"Command for software compilation;
6) Execute"Make install"Complete the installation;
7) Execute"Make clean"Delete the temporary files generated during installation.
Now, we are done. Then we can run the application. However, some readers may ask, How can I implement it? This is also a Linux issue. In fact, generally, executable files of Linux applications are stored
Under the/usr/local/bin directory! However, this is not the truth of "universal availability". The most reliable part is the install and readme files of this software.

2. Uninstall:
1) Open a shell, that is, the terminal
2) run the CD command to enter the configured software directory, that is, the directory during installation.
3) execute the anti-installation command:Make uninstall
Installation Directory: Pay attention to the installation directory during the make install command process, or read the README file in the installation directory. Of course, the best way is to specify the installation directory during the installation process. /Add the parameter -- prefix =/** after the configure command /**,
For example,./configure -- prefix =/usr/local/AAAA puts the software in the AAAA directory of/usr/local/path. The default installation directory of common software is/usr/local or/OPT. You can find it there.
Note: Generally, software developers seldom consider how to uninstall their own software, and tar only completes packaging, so it does not provide a good uninstall method. Can't you uninstall it! Actually, no. There are two software that can solve this problem: kinstall and kife. They are the golden partner for installing and uninstalling tar packages.

4. Get the application software packaged with RPM
Rpm is a major contribution of RedHat, which makes Linux software installation easier.
1. installation:
Rpm-IVHPackage name 
For more advanced information, see the following table:
Rpm parameter description
-I install software
-T test the installation.
-P: shows the installation progress.
-F ignore all errors
-U upgrade and Installation
-V check kit is correctly installed
These parameters can be used at the same time. For more information, see the RPM Command help.

2. Uninstall:
Rpm-eSoftware name 
Note that the software name is used later, not the software package name.
For example, to install the software-1.2.3-1.i386.rpm package, execute: rpm-IVH software-1.2.3-1.i386.rpm, and when uninstalling, execute: rpm-E software.

3. Check the software installed.
Rpm-Qa | grep MySQL

5. Use Deb to package applications.
This is a package manager provided by Debian Linux, which is very similar to rpm. However, since RPM appeared earlier, it is common in various versions of Linux. WhileDebian Package Manager dpkg is only available in debina LinuxOther Linux versions
Generally, none of them exist. Here we will briefly describe:
1. Install
Dpkg-I deb software package name
Such as: dpkg-I software-1.2.3-1.deb

2. Uninstall
Dpkg-E Software name
For example, dpkg-E Software

Vi. BIN file
1. Install
1) Open a shell, that is, the terminal
2) run the CD command to enter the sourceCodeDirectory of the compressed package
3) add executable permissions to the file:Chmod + x *******. Bin(In the middle is the letter X, in lower case)
4) execute commands:./******. Bin(This is the installation package for RealPlayer for Linux). During installation, you can specify the installation directory, which is similar to Windows installation.

2. Uninstall
1) Delete the installation directory selected during installation.

7. How to execute the software after installation. After installing the software, you can run the software in multiple ways:
1. Some software will automatically add a shortcut to the Application List after installation. Just like Windows, you can find it there.
2. If it is not found in the Application List, you can directly enter the command in the Start/Run Command. Generally, the startup command is the software name, such as Firefox, realplay, and xmms.
3. You can also open a shell terminal and enter the software name, it is the same as running commands. If you do not know the full name of a command, you can enter a letter at the beginning and press the tab key to search for it. The system will automatically display all commands starting with an input letter.
4. Run the Startup file in the installation directory, the executable icon in Linux is similar to the shell terminal icon.
5. Search in the/usr/bin directory. In Linux, the/usr/bin directory starts a connection for All executable files. You can go to the directory to find the startup command for the files you have installed and double-click Start.

VIII. Differences between rpm. Bin and bin files
1. Bind files are the same as windows EXE files.
2. rpm is like rar, whether willing or not, all in the same place. The good thing is to use vertices for confirmation.
3. Some Linux software does not expose source code, but only releases binary executable programs. Such programs are usually marked with bin;
4. Another type of software is released together with the binary installer and source code. The binary program file is marked with bin. RPM (taking the RedHat package as an example), and the source code is marked with source. rpm.
5. bin is a binary file that can be run directly. rpm is the software package manager used by RedHat. Generally, you can install it directly by double-clicking it. However, it is only applicable to release versions that support rpm, such as RedHat.
Ubuntu does not support Deb packages.
6. After the jdk-1_5_0_16-linux-i586-rpm.bin runs, it will extract an RPM package and install it with the rpm-IUH command.
7. After the jdk-1_5_0_16-linux-i586.bin runs, it will directly extract all files to the JDK subdirectory of the current directory.

 

 

from: http://blog.chinaunix.net/uid-24612962-id-3181499.html

Related Article

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.