In the Linux environment, especially in the Cenos installed some software, generally binary installation and source installation, now summary of Linux installation and uninstallation.
First, there are three kinds of installation packages for Linux application software:
1) Tar packages, such as software-1.2.3-1.tar.gz. It is packaged using a UNIX-system packaging tool, tar.
2) RPM packages, such as software-1.2.3-1.i386.rpm. It is a package encapsulation format provided by Redhat Linux. The command to install the RPM package is "rpm-parameters, package management tool yum." "
3) Deb package, such as Software-1.2.3-1.deb. It is a package encapsulation format provided by Debain Linux. The command to install the Deb package is "dpkg-parameters" and the package management tool Apt-get.
Second, the package naming rules:
The naming of most Linux application packages also has a certain regularity, which follows: name-version-revision-type
For example:
1) software-1.2.3-1.tar.gz means:
Software name: Software
Version number: 1.2.3
Fixed version: 1
Type: tar.gz, description is a tar package.
2) sfotware-1.2.3-1.i386.rpm
Software name: Software
Version number: 1.2.3
Fixed version: 1
Available platforms: I386 for the Intel 80x86 platform.
Type: RPM, description is a RPM package.
Note: Because the RPM format is usually a compiled program, you need to specify the platform.
Three, explain several ways to install and uninstall software:
1. Yum
Note: There is a prerequisite that the Yum installed packages are in RPM format
Install Package Command: Yum-y Install ~
Remove Package Command: Yum-y Remove ~
2, RPM
Installation: Rpm-ivh xxx.rpm
Reinstall: rpm-ivh-replacepkgs xxx.rpm
Uninstall: Rpm-e xxx.rpm
Query what software is installed: Rpm-qa|grep [package name]
See where RPM packages are installed: RPM-QL [package name]
3, tar.gz, TAR.BZ, tar.bz2
Installation:
(1) Decompression: TAR-ZXVF xxx.tar.gz (tar-jxvf xxx.tar.bz (or bz2))
(2)./configure (./configure--prefix=path (eg:/usr/local/xxx)
(3) Make
(4) Make install
Unloading:
Make Uninstall
or delete the corresponding software directory if it is deleted;
4. Bin
Installation:
(1) chmod +x xxx.bin (add execute permission)
(2) Execution file:./xxx.bin
Unloading:
Delete the installation directory directly
5. Pip Install Python Package
Installs the install Python-setuptools PYTHON-PIP first
Installation: Pip Install XXX
Uninstall: Pip Uninstall xxx
Linux Install, uninstall software