installation, update and uninstallation of Inux software
Linux is a common installation for Tar,zip,gz,rpm,deb,bin and so on. We can easily be divided into three categories.
First: Packaging or Compressed Files Tar,zip,gz, general decompression can be, or after decompression run SH file;
Second: the corresponding management tools, such as deb,rpm, usually such installation files can be installed through a third-party command line or UI simple installation, such as apt in Ubuntu to install
Yum in deb,redhat to install RPM;
Third: Like the. Bin class, is actually the SH and zip packaged as bin, or the SH and rpm packaged as bin, etc., when the command line to run the bin installation file, is actually the bin inside the SH to solve
The process of pressing the zip in the bin or installing the rpm
1. RPM installation, update and uninstallation
RPM package, such as the Windows EXE installation files, the various files have been compiled, and hit the package, which file to which folder, all specified well,
Installation is very convenient, in the graphical interface you only need to double-click to automatically install. But the one thing that's not good is the dependency of the package, which is annoying.
A. RPM Installation
1) Find the appropriate package, such as soft.version.rpm, to download to the local directory;
2) Open a terminal, SU into the root user;
3) The directory where the CD soft.version.rpm is located;
4) Input RPM-IVH soft.version.rpm
B. RPM Update
#rpm-UVH soft.version.rpm
C. RPM Offload
1) Find the package you want to uninstall Rpm-qa | Grepxxxxx
2) For example, find software mysql-4.1.22-2.el4_8.4, execute RPM-E mysql-4.1.22-2.el4_8.4
Note: Query the installation directory of the software, with the command RPM-QL mysql-4.1.22-2.el4_8.4
2. Install package at end of. bin
Bin similar RPM package installation, also relatively simple
Bin Installation
1) Open a shell, which is the terminal
2) Use the CD command to enter the directory where the source code compression package resides
3) Add executable attribute to file: chmod +x ******.bin (middle is letter X, lowercase)
4) Execute the command:./******.bin or directly execute SH ******.bin
Bin Unload
Remove the installation directory that you selected during installation to OK
3. tar.gz (BZ or BZ2, etc.) end of the source code package
This package is a source program, not compiled, need to be compiled to install
Source Code Installation
1) Open a shell, which is the terminal
2) Use the CD command to enter the directory where the source code compression package resides
3) Unzip the file according to the compression package type (* represents the name of the ZIP package)
TAR-ZXVF ****.tar.gz
TAR-JXVF ****.tar.bz (or bz2)
4) Enter the extracted directory with the CD command
5) Enter the compile file command:./configure (some compression packages have been compiled, this step can be omitted)
6) then the command: Make
7) Again the Install File command: Make install
Note: We can view the features of the configuration software through the./configure--help; Most software is provided./configure configuration software functions; few of them.
If you don't have one, you don't have to./configure; direct Make;make install on the line;/configure an important parameter is--prefix, with the--prefix parameter
Number, we can specify the Software installation directory
Source Code Uninstallation
1) Open a shell, which is the terminal
2) Use the CD command to enter the compiled software directory, which is the directory at the time of installation
3) Execute the anti-install command: Make Uninstall
4. Yum Installation
Yum is the RPM management tool that manages a software library that can handle dependencies well
1) Yum Installation
Yum install-y software Name
2) Yum Update
Yum update-y software Name
3) Yum Uninstall
Yum remove-y software name or yum erase-y software name
4) Yum List view packages in the repository
5 Apt-get Installation
Apt-get is a Deb management tool, similar to Yum
Apt-get Install Package
Apt-get Reinstall package re-install packages
Apt-get Upgrade Update installed packages
Apt-cache Rdepends package is to see which packages are dependent on
Apt-cache depends package learn about using dependencies
Apt-get Clean && apt-get autoclean cleanup of useless packages
Apt-cache Show package for information about packages, such as description, size, version, etc.
Apt-get Remove Package
Apt-get Purge Package Delete packages, including deletion of configuration files, etc.
---end----
installation, update and uninstallation of Inux software