Introduction to a variety of software installation methods and more friendly package management software on the Linux platform

Source: Internet
Author: User

First, the Linux platform software on the loading and unloading of four ways 1, source package installation, uninstallation

Advantages: Best performance, stable

Cons: installation is slightly more complex and error prone

The common software source code package is compressed, the compressed format is divided into GZ and BZ (or bz2) two formats.

SOURCE Package Format: ***.tar.gz (or bz,bz2).

As shown, PHP is the source package:

The installation and uninstallation of the source package (in the case of PHP's installation package) is as follows:

1) Installation:

First step: Unpack the installation package

GZ suffix by: tar-zxvf php-5.5.14.tar.gz

BZ (or bz2) suffix by: tar-jxvf php-5.5.14.tar.bz2

Step two: Go to the directory and configure

CD php-5.5.14

./configure (Note: Configure command has a lot of parameters, here is not elaborate.) )

Step three: Compiling

Make

Fourth Step: Install

Make install

(Tip: Make and make install can be executed together, with makes && made install)

2) Uninstall

Go to the installation directory and use the command make uninstall to uninstall.

2, RPM package installation and uninstallation

RPM is an abbreviation for the Redhat Package Manager (Redhat Packages management tool), a file format name that, although Redhat, is open-ended and now includes OpenLinux, S.U.S.E. and the Turbo Linux distributions, such as Linux, are accepted as industry standards.

Advantages: Simple and convenient

Cons: requires package dependency

As shown, is the RPM package for MySQL:

1) Installation:

Go directly to the directory and run the file

./mysql-server-5.7.3_m13-1.el6.i686.rpm

2) Find the package:

Rpm-qa mysql-server*

3) Find the installation path:

RPM-QL mysql-server-5.7.3

4) Uninstall:

Rpm-e mysql-server-5.7.3

3. deb Package Installation and uninstallation

Advantages: Simple and convenient

Cons: requires package dependency

Deb is the Debian package file extension, like the Debian name, and Deb is named for Debra Murdock, who is the wife of the Debian founder Ian Murdock.

Deb and RPM form the two main camps for package management tools under the Linux operating system.

1) Installation:

Dpkg-i <package.deb>

2) Uninstall:

Dpkg-r <package>

4, Bin package installation and uninstallation 1) Installation:

Give the bin file execute permission to run directly.

2) Uninstall:

Go to the installation directory and delete all files.

Ii. more user-friendly package management software 1, YUM

Advantages: simple, convenient, solve the package dependency

Yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat as well as SuSE and CentOS. Based on RPM package management, the ability to automatically download RPM packages from specified servers and install them automatically handles dependency relationships and installs all dependent packages at once, without the hassle of downloading and installing them over and over again.

Note: The specific use of the command, here will not elaborate.

2. APT

Advantages: simple, convenient, solve the package dependency

APT (the full name: Advanced packaging Tool) is an installation package manager under Linux.

Note: The specific use of the command, here will not elaborate.

Iii. Summary

This article says four kinds of Linux under the installation of software, if you add yum and apt, is six kinds. The following six types of environments are used:

1, if you need security, stability, all under the control of the software, and you are very familiar with the source code compilation installation method, please select the first provenance package installation mode.

2, if you download the software is the RPM format, the Deb format, the bin format, then you can only choose the appropriate installation method, but please advance the corresponding dependent package installed.

3, if you are connected to the Internet, the default is apt under Ubuntu, then it is recommended that you use apt to download and install the software, and by default Yum is Redhat, it is recommended that you download and install the software online using Yum. Through online download, more accurate and more convenient, can solve the software dependency problem.

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.