Linux Software Installation various methods

Source: Internet
Author: User
Tags bz2

A Brief introduction

1, software safety loading and unloading, in several cases: A:RPM Package

This software package is like the Windows EXE installation file, the various files have been compiled, and hit the package, which file to which folder, all specified, the installation is very convenient, in the graphical interface you only need to double-click to automatically install.

= = How to uninstall:
1. Open a shell terminal
2, because the software name under Linux includes the version number, so it is best to determine the first before uninstalling the full names of the software.
Find RPM Package Software: rpm-qaxxx*
Note: XXX refers to the software name at the beginning of a few letters, not required to write the whole, but not wrong, * is a wildcard symbol "*", that is, asterisks, if you want to find the machine installed RealPlayer software, you can enter: Rpm-qa realplay*
3. After the software is found, the full name of the software is displayed, such as firefox-1.0.1-1.3.2
Execute uninstall command: RPM-E firefox-1.0.1-1.3.2
= = = Install directory, execute command lookup: RPM-QL firefox-1.0.1-1.3.2

= = = Reference article: http://blog.chinaunix.net/article.p...178&blogId=1438


B:tar.gz (BZ or BZ2, etc.) end of source code package

This package is a source program, not compiled, need to be compiled to install, the installation method is:

1. Open a shell, that is, the terminal
2. Use the CD command to enter the directory where the source code compression package is located
3. Unzip the file according to the package type (* represents the package name)
TAR-ZXVF ****.tar.gz
TAR-JXVF ****.tar.bz (or bz2)
4. Use the CD command to enter the unzipped directory
5. Enter the compile file command:./configure (some compression packages have been compiled, this step can be omitted)
6. Then the command: Make
7, then the installation file command: Make install
8, Installation completed
= = = How to uninstall:
1. Open a shell, that is, the terminal
2, use the CD command to enter the compiled software directory, that is, the installation of the directory
3. Execute the Anti-installation command: Make Uninstall

= = = Install Directory: note the make install command during the installation directory, or read the Readme file in the installation directory, of course, the best way is to specify the installation directory during the installation, that is, after the./configure command and the parameter--prefix=/**,
such as:./configure--prefix=/usr/local/aaaa, that is, the software is installed in the/usr/local/path AAAA directory. The default installation directory for general software in/usr/local or/OPT, you can go there to find C: install package with bin end

This package is similar to the RPM package, and the installation is relatively simple
1. Open a shell, that is, the terminal
2. Use the CD command to enter the directory where the source code compression package is located
3. Add executable attribute to file: chmod +x ******.bin (middle is letter X, lowercase)
3, execute the command:./******.bin (RealPlayer for Linux is such an installation package)
= = = How to uninstall: Remove the installation directory that you selected during installation to OK
= = = can be specified during the installation process, similar to the installation under Windows.

2. How to execute the software after installation. After installing the software, there are several ways to execute the software:
A, some software installed automatically in the application list to add shortcut keys, and Windows, just go there.
B, if not found in the application list, you can enter the command directly in the/start/Run command: The start command is usually the software name, such as FIREFOX,REALPLAY,XMMS, etc.
C, you can also open a shell terminal, enter the software name, and in the "Run Command" in the same. If you do not know the entire command, you can enter the beginning of the letter, and then press the TAB key to find, the system will automatically display to enter the letter beginning with all the commands/
D, you can also run the boot file directly into the installation directory, Linux executable icon and shell Terminal icon very much like
E, to the/usr/bin directory to find the installed software startup file Execution command. The Linux system has all the executable file commands

The/bin directory has a start-up connection, you can go to that directory to find the startup commands for the files you installed, double-click Start

Reference from: http://soft.zdnet.com.cn/software_zone/2008/0513/858582.shtml two using Yum installation below Fedora

Fedora

Reference: http://blog.163.com/bh_binghu/blog/static/9455351201091611446423/

1 generally direct installation (automatic resolution of dependencies)

sudo yum search package_name

sudo yum install package_name

Note that a lot of third-party libraries for development, generally need to install two packages Devel package is a header file, and the other is a library file. Generally by default only enter the name of the word draw install Lib package.

For example

libconfig-devel.i686:development files for Libconfig
libconfig-devel.x86_64:development files for Libconfig
libconfig.i686:c/c++ Configuration File Library
libconfig.x86_64:c/c++ Configuration File Library

2 If there is a direct RPM package

First understand Yum: based on RPM package management, the ability to download RPM packages from specified servers and install them automatically, and automatically process dependencies and install all dependent packages at once.

So installing with Yum is essentially a RPM installation, so the RPM query information instructions are available. Install the software (take foo-x.x.x.rpm as an example): Yum install foo-x.x.x.rpm

Remove software: Yum remove foo-x.x.x.rpm or yum erase foo-x.x.x.rpm upgrade software: Yum upgrade foo or yum update foo query information: Yum info foo search software (in package With the Foo field as an example): Yum search Foo Displays package dependencies: Yum deplist foo other parameters see man yum

Linux Software Installation various methods

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.