Various software installations in Linux

Source: Internet
Author: User

Linux form of software under

There are several common ways to software on Linux

Binary Release Package

Software packages have been compiled and packaged for specific platforms, can be used after decompression, up to the change of configuration files, Linux is the most common and common package release form

Example: JDK Software, Tomcat Software

rpm Package

RPM packages, which are packaged and released following the Redhat Package Management tool specification RPM, are installed via the RPM command

Yum Package

To be exact, there is no Yum package; Yum is a management tool for RPM packages, the RPM packages can be found through Yum, and Yum can help us automatically download, automatically resolve dependencies, and automate the installation of RPM software packages;

YUM = RPM Package management tool = Find/download/install/resolve RPM packages dependencies

RPM Package InstallationRPM related command set

# RPM-IVH abc.rpm Install RPM Package

-I, install-v, verbose information print installation information,-H hash, package decompression after printing 50 *

# RPM–QL ABC View the installation location of RPM packages without the. rpm suffix

-Q, Query,-l, location

# RPM –e ABC --nodeps uninstall already installed RPM packages, ignoring software already in use XXXX

-E, Erase erase,--nodeps, ignore if any other software will use ABC (default will check if any other software is used to ABC, and will stop unloading, give a hint)

Binary Package Installation

Binary package installation, very simple, through the tar command can be pressurized;

But be sure to ensure that the package corresponds to your platform: 64-bit binary packages for x86_64

# TAR-XZVF Abc.bin.tar.gz Extract and unpack, the abc/directory will be generated in the current directory

Yum automatically download and install RPM Package

Yum, a package management tool available on Redhat,centos, Fedora, SuSE

Ability to automatically download RPM packages (automatically parse dependencies, automatically download all dependent packages) from the specified server and install the software;

The specified server can be modified as: Local file directory, a Web server in the intranet, modify the. Repo configuration file under native/etc/yum.repos.d/can be implemented

Yum Command Common format

# yum [option] command package .....

*option: Optional,-H help,-Q does not display the installation process,-y installation process selection, all Yes, etc.

*command: What to do, list/update/install/remove/search/clean packages, etc.

*package: The object to manipulate

Common Yum Commands

# Yum List Find and List all installable software from a central warehouse

# Yum List | grep ssh filtering from all installable software

# yum Search ssh Find out if the package is available from a central repository

# yum Check-update List all updatable software, including Yum own

# Yum Update update all software, including Yum own

# Yum Update SSH updates the specified software

# yum Install ssh download all dependent packages and download them

# yum Remove ssh uninstalling a given software

# Yum Clean packages clears packages from the local cache

# yum Clean All clears all content from the local cache Modify Yum after the source configuration file, you need this

4 , source code compiled and installed

Take Redis, for example, and go to Redis folder after decompression

# make automatically reads the makefile , compiles all the source code under src

1/If the error indicates that GCC is missing, install Gcc:yum list | grep gcc Yum Install gcc_x86_64

2/If Error tip: Newer version of Jemalloc required, add parameters when make:

Make MALLOC=LIBC

Specify the directory for the compiled software installation make install

# make Prefix=/usr/local/redis install

Copy a configuration file to the installation directory

Switch to the source directory and copy the redis.conf to the installation directory

# CP redis.conf/usr/local/redis/

Various software installations in Linux

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.